go ahead... be a heretic | |
PerlMonks |
Re: Re: A delay effect...by unb0rn (Scribe) |
on Dec 30, 2001 at 21:01 UTC ( [id://135258]=note: print w/replies, xml ) | Need Help?? |
To set the autoflush, just set the magic variable $| to 1.
I used $|++ to increment it, because it's default value is 0, or autoflush turned off. Autoflush means that Perl sends the output of print's in time they are called. When it's off, Perl puts the print's output in a temporary buffer, and sends the print's output in blocks to the screen/client/etc. . Just another not-perfect-but-trying-to-be-legible answer 8-)
In Section
Seekers of Perl Wisdom
|
|