[Nottingham] Perl help - 'sleep'

Duncan John Fyfe djf at star.le.ac.uk
Thu Jul 14 12:49:08 BST 2005


On Thu, 2005-07-14 at 12:24 +0100, Martin wrote:
> Folks,
> 
> OK... For a non perlie...
> 
> What is the perl command to pause/sleep for a number of minutes?
> 
> eg: The perl equivalent of the Bash "sleep 30m"?

sleep 1800; 
sleep 30 * 60; #If you want to think in minutes

See: perldoc -f sleep
Also: perldoc Time::HiRes
	for a version that provides sub-second accuracy.

Have fun,
Duncan





More information about the Nottingham mailing list