boltman has asked for the wisdom of the Perl Monks concerning the following question:
on my Linux box (using perl 5.6) My output is:print "hello"; sleep 2; print "goodbye";
where I would expecthellogoodbye <wait for 2 seconds>
Now, if I change the script to (only adding \n):hello<wait for 2 seconds>goodbye
I get the expected result of:print "hello\n"; sleep 2; print "goodbye";
On my Win2k box, both scripts give the expected results. What's happening here?hello <wait 2 seconds> goodbye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Sleep behavior across platforms
by jeffa (Bishop) on Mar 22, 2002 at 17:57 UTC | |
|
Re: Sleep behavior across platforms
by perrin (Chancellor) on Mar 22, 2002 at 18:57 UTC |