Or you could use select():
select(undef, undef, undef, 298.6); # Be precise
That way, your program will sleep for exactly 298.6 seconds. sleep() will actually sleep more or less than you want depending on what architecture you are on.
In reply to (redmist) Re: Making a program stop executing for five minutes
by redmist
in thread Making a program stop executing for five minutes
by RichardH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |