Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Re: A delay effect...by Juerd (Abbot) |
on Dec 30, 2001 at 20:06 UTC ( [id://135253]=note: print w/replies, xml ) | Need Help?? |
UPDATE: This is my 100th post! :)) Yes, but think about buffering. Perl won't flush it's buffer until it sees a newline. You have no \n after the <br>, so this is what happens:
You could put a \n after the <br>, or turn on the autoflush using $| = 1 (often seen obfuscated as $|++).
I recommend the newline solution, because HTML doesn't care about the newline being there, and autoflushing decreases performance. Information about $| and many other special variables can be found in perlvar.
In Section
Seekers of Perl Wisdom
|
|