P is for Practical | |
PerlMonks |
Re: Signal Handling and alarm()by mugwumpjism (Hermit) |
on Jun 16, 2005 at 21:53 UTC ( [id://467463]=note: print w/replies, xml ) | Need Help?? |
The general solution to this is to use POE, or in particular POE::Component::Client::UserAgent. That might sound like a formidable thing to want to do, but I've had success in the past doing this without completely re-engineering the program - just turning each turn of the "event loop" you'll have written in your program into its own little POE session.
In Section
Seekers of Perl Wisdom
|
|