Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make a perl program to wait

Status
Not open for further replies.

ejaj

Programmer
Sep 26, 2002
7
DE
Hi

How can I make my perl program to wait for some time before executing next line?.. e.g
$input=chomp(<STDIN<);
# I want to wait or delay here for 5 sec before executing next line &quot;print&quot;your inout is $input\n&quot;;&quot;
print&quot;your inout is $input\n&quot;;
...
Itz a very silly thing.. i m running Winnt.. and i m not finding the functin to do so. Can any1 help me?

Ejaj
 
The &quot;sleep&quot; function usually works - not sure on Win NT thought. Do 'perldoc -f sleep' at a command prompt to see the perldocs on &quot;sleep&quot;.

HTH. Hardy Merrill
 
Hardy Merrill

Thanks a lot. &quot;sleep&quot; function also works with WinNT. Your help was really appreciated. :)

Ejaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top