in reply to Re: what does $|++ do here?
in thread what does $|++ do here?
It flip-flops like a switch when you increment it.If only.
It's worse. It acts like a flip-flop when you decrement it, but not when you increment.
perl -wE 'say $|++ for 1 .. 5; say "--"; say $|-- for 1 .. 5' 0 1 1 1 1 -- 1 0 1 0 1
|
|---|