in reply to how to set alarm in perl
$SIG{ALRM} = sub { warn "3 days over!\n"; exit }; alarm(86400 * 3);
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to set alarm in perl
by Anonymous Monk on Sep 11, 2006 at 07:44 UTC | |
by shmem (Chancellor) on Sep 11, 2006 at 08:03 UTC |