in reply to Re^4: "last expression" quiz
in thread "last expression" quiz
Actually, bart is saying it returns !1 which is really scalar false. It is subtly different than "" as can be seen here:
$ perl -wle 'print "yes" if !1 == 0 ' yes $ perl -wle 'print "yes" if "" == 0 ' Argument "" isn't numeric in numeric eq (==) at -e line 1. yes
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: "last expression" quiz
by japhy (Canon) on Oct 19, 2005 at 23:12 UTC | |
|
Re^6: "last expression" quiz
by Aristotle (Chancellor) on Oct 19, 2005 at 22:42 UTC | |
by chromatic (Archbishop) on Oct 20, 2005 at 06:46 UTC | |
by Aristotle (Chancellor) on Oct 21, 2005 at 10:22 UTC |