muba - Makes perfect sense.
I deal with errors ( such as login fail ) by either Croaking or returning two values so:
my( $is_success, $return_val ) = this_function_might_return_mu();
But I see the obvious merit in returning undef - Something I intend to use in the future.
In reply to Re^4: How come undef eq '' ??
by tmharish
in thread How come undef eq '' ??
by tmharish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |