Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: creative forking (code)

by edebill (Scribe)
on Nov 04, 2001 at 09:32 UTC ( [id://123135] : note . print w/replies, xml ) Need Help??


in reply to creative forking (code)

I've had good luck registering a handler for SIGALRM and setting an alarm to go off. like so:
$SIG{ALRM} = \&mp3_player; alarm(1);