in reply to Making a program stop executing for five minutes

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.

redmist
Silicon Cowboy