Hi~

To make a delay, I think, use 'sleep' function.

Here is example.

#!/usr/bin/perl -w

print "abcde\n";
bla bla bla..

sleep 5;                #sleep in 5 seconds.

print "bcde\n";

Printing "abcde bla bla...", script sleep in 5 seconds, and print "bcde:.

if you want to handle miliseconds, use select function. ^^

but in using select function, I heard, it is difficult. and I don't know about select 
exactly.

Good bye~ Have a nice day~


-----Original Message-----
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Ricardo 
Cumberbatch L.
Sent: Monday, May 07, 2001 9:08 AM
To: Perl-Unix-Users
Subject: [Perl-unix-users] How to make a delay before a instruction.



Hi everybody,

I try to make a script, but a need to make a delay before a instuction
this is a example:

close(Aprob);

print Aprob @new;

(I what to make the delay befor this next instruction)

open( mail| /usr/bin/mail  bla bla bla ...
 


Thanks for the help


R.C.L.


_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users=êåRx±RÇ«²f¢–)à–+-N‹§²æìr¸›z
-¢m§ÿåŠËlz»Àrدy+Zµç(›ùšŠYšŸû.nÇ+‰·¿¥êåºx±ºÇ«

Reply via email to