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
In reply to Re^2: what does $|++ do here?
by JavaFan
in thread what does $|++ do here?
by deep3101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |