NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Boolean (Score:2)
That's perl's new built-in boolean type. The pumpkings have been slipping in Perl 6 features when you weren't looking. :)
I think what happens is you decrement 0 to get -1, but $| only stores the truth or falsehood of its value, so it stores and outputs 1.
Neat!
On another note, I like how everyone in this thread is actually using -w for a one liner. :)
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This