note
ncw
Glad you like it!<P>
Yes I should make the fact that it uses $SIG{ALRM} explicit
in the documentation. However note that TimeLimit always
uses local $SIG{ALRM} which means that it gets reset to
its previous value when it goes out of scope.<P>
The answer to [CPAN://Net::Ping] of course is that it
should use TimeLimit too if it uses [alarm](), or if
you have some code that you think might be using alarm() &or $SIG{ALRM}
and not resetting it then
bracket it in a time_limit { } block and that will reset
the alarm() & $SIG{ALRM} properly.<P>
Ideally I should submit TimeLimit so CPAN so everyone who uses alarm()
anywhere should use it instead!<P>
74429
74481