Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Re: Re: buffering question

by Rudif (Hermit)
on Aug 29, 2001 at 22:33 UTC ( #108837=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://108837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-11-29 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?