Re: another error handling question

2006-07-21 Thread Stephen Kratzer
On Friday 21 July 2006 12:24, Jerry DuVal wrote: > Any way to catch a die message? I want to catch a die message from a sub > routine, log it, and continue with a different sub routine. > > > > Thanks in advance, > > > > Jerry You could call the subroutine from an eval block and check the value of

RE: another error handling question

2006-07-21 Thread Jeff Peng
Any way to catch a die message? I want to catch a die message from a sub routine, log it, and continue with a different sub routine. Hello.You could redefined the SIGDIE handler,point it to the reference of a subroutine (or an anonymous subroutine).In this subroutine,you could do the thing

Re: another error handling question

2006-07-21 Thread Tom Phoenix
On 7/21/06, Jerry DuVal <[EMAIL PROTECTED]> wrote: Any way to catch a die message? Perl has two common ways to do this: with an eval block and with the $SIG{'__DIE__'} mechanism; both are covered in the perlfunc entry about die. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To