Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503118]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-12-08 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (136 votes). Check out past polls.