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

Re: what does $|++ do here?

by SimonClinch (Deacon)
on May 30, 2011 at 09:21 UTC ( #907289=note: print w/replies, xml ) Need Help??


in reply to what does $|++ do here?

Noting also the comment about it being a toggle, the ++ doesn't make sense to me either. But in that case, I would tend to wonder if the following is what is really meant:
$| = !$|;
Which is a good enough reason otherwise to support the above idea of just assigning one to it to avoid confusion.

One world, one people

Replies are listed 'Best First'.
Re^2: what does $|++ do here?
by ikegami (Pope) on May 31, 2011 at 18:01 UTC
    It was said that --$| toggles $|. While $| = !$|; is clearer than --$|, noone said anything about wanting to toggle $|.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://907289]
help
Chatterbox?
[erix]: o/
[erix]: I'm a bit stuck with regex capturing. Anyone wants to ahve a look at my [erix://pad | scratchpad ? (it's the little test program at the top there)]
[erix]: hm [erix://pad]
[erix]: pad::/erix
[erix]: erix's scratchpad

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-01-19 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (216 votes). Check out past polls.

    Notices?