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.
:-)
In reply to Re: Re: Functions that return nothing, nada, failure...
by adrianh
in thread Functions that return nothing, nada, failure...
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |