so why should the condition succeed?
perl -e '$empty = (); print ("hi there\n") if \!$empty; __END__ hi there
perl -e '$empty = (); print ("hi there\n") if \!defined($empty);' __END__ hi there
PS: I am using \! to avoid my csh from interepreting it as a special shell character.
In reply to Re: An empty list in boolean context?
by sk
in thread An empty list in boolean context?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |