Re: unhead

Andrew Savige <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
"Randal L. Schwartz" wrote: 
> Well, it also presumes that "!" returns literally 0 and 1.  I've
> never seen a promise of that in any docs.

Well, I've seen a promise of it in one of your books. :-)
Perhaps it doesn't count as official docs, but the 2nd edition of the
Camel by Larry Wall, Tom Christiansen and _Randal L. Schwartz_ states
in the "Ideographic Unary Operators" section on page 80:

"Unary ! performs logical negation, that is, "not". See also not for
a lower precedence version of this. The value of a negated operation
is 1 if the operand is false (numeric 0, string "0", null string, or
undefined); otherwise, the value is that of the null string."

/-\


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.