Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: How come undef eq '' ??

by tmharish (Friar)
on Jan 31, 2013 at 06:45 UTC ( #1016230=note: print w/ replies, xml ) Need Help??


in reply to Re^3: How come undef eq '' ??
in thread How come undef eq '' ??

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.


Comment on Re^4: How come undef eq '' ??
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (18)
As of 2015-07-30 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls