Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by jdavidb (1361) on 2002.08.20 10:06 (#11987) Homepage Journal

    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