Well, not really *that* criminal --
it's a non-empty list...
<INCORRECT>
lists in scalar/boolean context return the number of
their elements.
</INCORRECT>
Update: I humbly acknowledge the folly of the above statement.
Should be:
list assignment returns the number of elements.
End Update
Thus:
perl -e '$val = () = 0; print $val';
prints 1 -- true!
In reply to RE: Re: require problems
by Zarathustra
in thread require problems
by Kurious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |