http://www.perlmonks.org?node_id=907289


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 (Patriarch) on May 31, 2011 at 18:01 UTC
    It was said that --$| toggles $|. While $| = !$|; is clearer than --$|, noone said anything about wanting to toggle $|.