Check if a given function returns something
- From: vijaygos@xxxxxxxxx (Vijay Krishna)
- Date: Tue, 26 Feb 2008 23:59:30 -0800 (PST)
Hi All,
I want to check if a sub routine that I am calling returns a value or not.
This is how my code is
$str = function(parameter)
sub function
{
........
......
........
}
the sub routine function in turn uses many other function. Some of these functions have a return statement and some do not.
So, when i invoke the sub routine "function" and i pass the returned value into $str, I need to check if $str has any value assigned or not.
Can you tell me how I could accomplish this?
Thanks,
Vijay
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
- Follow-Ups:
- Re: Check if a given function returns something
- From: Mk
- Re: Check if a given function returns something
- From: Jeff Pang
- Re: Check if a given function returns something
- Prev by Date: Re: Is this possible to override print() ?
- Next by Date: Re: Check if a given function returns something
- Previous by thread: looping thru delete check boxes
- Next by thread: Re: Check if a given function returns something
- Index(es):
Relevant Pages
|