in reply to Re^3: unless versus if ( ! ) inside a subroutine
in thread unless versus if ( ! ) inside a subroutine
U:\> perl -MO=Deparse -le "$x = 5; if ($x) { print $x }" $x = 5; if ($x) { print $x; }
U:\>perl -MO=Deparse -le "$x = 5; if (0) { print $x }" $x = 5; '???';
U:\>perl -MO=Deparse -le "$x = 5; if (1) { print $x }" $x = 5; print $x;;
U:\>perl -MO=Deparse -le "$x = 5; if (! 0) { print $x }" $x = 5; print $x;;
--
[ e d @ h a l l e y . c c ]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: unless versus if ( ! ) inside a subroutine
by almut (Canon) on Jan 16, 2008 at 15:11 UTC |