in reply to Re: Functions that return nothing, nada, failure...
in thread Functions that return nothing, nada, failure...
I vaguely remember the meme "use return with no arguments to return false to any context" as received wisdom, but I can't find any such citation.
From perldoc -f return:
If no EXPR is given, returns an empty list in list context, the undefined value in scalar context, and (of course) nothing at all in a void context.
:-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Functions that return nothing, nada, failure...
by tkil (Monk) on Jun 01, 2004 at 20:03 UTC |