I would expect the following script:

     use strict;
     use warnings;
     print 8*8;
     sleep 3;
     print 7*7;

To behave as follows.

     1. print 64.
     2. pause 3 seconds.
     3. print 49.

Instead the behavior is:

     1. pause 3 seconds.
     2. print 64.
     3. print 49.

Why is that, and how do I insert a pause in between these two print
commands (as an example)?

BTW, I did perldoc -f sleep.  If it explains this behavior, I didn't
understand it.

Kevin


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to