Because of the context issues you mentioned, I'd use a blank return; instead of return undef;
I hate you! Functions that are expected to return a scalar should not suddenly returning nothing. It rarely has any advantage, and it fails very poorly in common situations.
f( name => get_name(), foo => 1 );
In reply to Re^2: A question about method return values and error checking
by ikegami
in thread A question about method return values and error checking
by wee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |