Perl-Sensitive Sunglasses | |
PerlMonks |
Re: blocking socket and alarmby ozone (Friar) |
on Sep 05, 2006 at 16:59 UTC ( [id://571284]=note: print w/replies, xml ) | Need Help?? |
A more robust (and portable) approach is to perform a 'select' call on the socket handle with a 60 second timeout. That way
you don't have to worry about any signal nastiness.
Either use IO::Select or the second form from perldoc -f select
In Section
Seekers of Perl Wisdom
|
|