Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 rifling through the Monastery: (5)
As of 2014-10-26 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls