Chris_Hayes has asked for the wisdom of the Perl Monks concerning the following question:
__________________________________________________________#!/usr/bin/perl -w eval{ $SIG{ALRM} = sub {die "DING-DING"}; alarm(10); print "I am frustrated."; alarm(0); }; if($@){ if ($@ eq "DING-DING"){ print "Yaaaaa!"; }else{ print "Uh oh, not an alarm error; here goes...\n $@ "; }}else{ print "No error was generated"; }
Uh oh, not an alarm error; here goes... The Unsupported function alarm function is unimplemented at C:\p.pl line 4.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(bbfu) (alarm unsupported) Re: Problem with alarm()
by bbfu (Curate) on Oct 18, 2002 at 18:33 UTC | |
|
Re: Problem with alarm()
by dug (Chaplain) on Oct 18, 2002 at 18:39 UTC | |
|
Re: Problem with alarm()
by fokat (Deacon) on Oct 19, 2002 at 03:38 UTC | |
|
Re: Problem with alarm()
by particle (Vicar) on Oct 19, 2002 at 14:10 UTC | |
|
Thanks for the help.
by Chris_Hayes (Initiate) on Oct 21, 2002 at 17:53 UTC |