more useful options | |
PerlMonks |
Re: unlessby Bilbo (Pilgrim) |
on Jun 25, 2003 at 16:20 UTC ( [id://268905]=note: print w/replies, xml ) | Need Help?? |
Try running this line:
It probably doesn't do what you think it does. Now try this:
The problem is, I think, that the first is interpreted as:
If the second operation (exit) is successful then this would print "1" for "true", except that since the second operation is exit it can't print anything because it's exited before it gets to the print statement.
In Section
Seekers of Perl Wisdom
|
|