Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-25 07:29 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (159 votes), past polls