Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Poor Perl Idioms Explained (except not really)

by QM (Parson)
on Oct 26, 2005 at 17:28 UTC ( #503118=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Poor Perl Idioms Explained (except not really)
in thread Perl Idioms Explained - $|++

Even more obvious:

$ perl -le '$| = 42; print $|;$|--;print $|' 1 0
So $|++ always sets it to true, and $|-- toggles it. Useful to know, but not obvious, and not consistent. But then DWIMmery is not necessarily consistent.

Quantum Mechanics: The dreams stuff is made of

Comment on Re^3: Poor Perl Idioms Explained (except not really)
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503118]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-11-27 07:54 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (720 votes), past polls