in reply to print sleep print
The print, sleep, print is occuring when you expect it too. However, output is buffered -- meaning that what get sent to output get held until the buffer gets flushed.
The $| = 1; line tells Perl to shut off its buffering; So everything that gets printed goes out immediately.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: print sleep print
by tye (Sage) on Jun 26, 2001 at 19:02 UTC | |
by Abigail (Deacon) on Jun 26, 2001 at 22:56 UTC | |
by Anonymous Monk on Jun 26, 2001 at 23:38 UTC |