Try setting buffering off, its probably due to that as it should do a,b,c -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 October 2007 02:50 To: beginners@perl.org Subject: Sleep apnea
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/ This e-mail is from the PA Group. For more information, see www.thepagroup.com. This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this email or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of the PA Group. Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/