in reply to Self resurrecting perl scripts
So that script in the eval block will fail, you can avoid the die of your main program. Just check the Code in $@.eval { CODE WHAT TO DO || die; }; print $@;
Just a question to your SIG{__DIE__}: Is this the same like an END{} Block ?
UPDATE: added a ; behind the eval block ;-)
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Self resurrecting perl scripts
by KM (Priest) on Apr 11, 2001 at 19:18 UTC | |
|
Re: Re: Self resurrecting perl scripts
by traveler (Parson) on Apr 11, 2001 at 19:48 UTC | |
|
Re: Re: Self resurrecting perl scripts
by RhetTbull (Curate) on Apr 12, 2001 at 00:51 UTC |