in reply to multiple commands before unless ?
Try running this line:
print "Yes\n" && exit;
It probably doesn't do what you think it does. Now try this:
(print "Yes\n") && (exit);
The problem is, I think, that the first is interpreted as:
print ("Yes\n" && exit);
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: unless
by fglock (Vicar) on Jun 25, 2003 at 16:38 UTC |