Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by QM (Parson)
on Oct 26, 2005 at 17:28 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://503118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found