http://www.perlmonks.org?node_id=23486


in reply to Using Alarm to Handle Timing

It looks and works perfectly as far as I can tell. Its a bit hard-wired with that 5 seconds... but as a demo it works great :)

Is it possible to say $SIG{ALRM} = \&wake_up(5) by chance?

--awwaiid