http://qs321.pair.com?node_id=108837


in reply to Re: Re: Re: Re: buffering question
in thread buffering question

Thank you, chipmunk, for setting me straight on this one.

My C upbringing showed up, and I did not test what I presumed was the behavior of $| :-(

Rudif

Update </b

Now that I did test it, turns out to be even more interesting. Running this

print $|++ for (0..9); print" post ++\n"; print $|-- for (0..9); print" post --\n"; print ++$| for (0..9); print" pre ++\n"; print --$| for (0..9); print" pre --\n";
prints this
0111111111 post ++ 1010101010 post -- 1111111111 pre ++ 0101010101 pre --
Creative use of this  $|-- behavior, anyone?