Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

How come undef eq '' ??

by tmharish (Friar)
on Jan 30, 2013 at 15:23 UTC ( [id://1016083]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'if( undef eq "" ) { print "In\n" } else { print "Out\n" }'
    In
    ...
    
    perl -e 'if( undef ne "" ) { print "In\n" } else { print "Out\n" }'
    Out
    
  2. or download this
    perl -e 'my $tmp; if( $tmp and ( $tmp eq "" ) ) { print "In\n" } else 
    +{ print "Out\n" }'
    Out
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1016083]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-19 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found