in reply to How come undef eq '' ??
Not to get into a discussion on what perl should do but:
perl -e 'if( $tmp eq 0 ) { print "In\n" } else { print "Out\n" }' Out
By the same logic - I cant seem to understand why this is not true! Especially considering undef $a; $a++ works as expected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How come undef eq '' ??
by muba (Priest) on Jan 30, 2013 at 15:55 UTC | |
|
Re^2: How come undef eq '' ??
by Corion (Patriarch) on Jan 30, 2013 at 15:53 UTC | |
|
Re^2: How come undef eq '' ??
by tmharish (Friar) on Jan 30, 2013 at 16:53 UTC |