We don't bite newbies here... much | |
PerlMonks |
Re: Re: exception handling (the weird way)by Felonious (Chaplain) |
on Mar 08, 2002 at 16:24 UTC ( [id://150355]=note: print w/replies, xml ) | Need Help?? |
Unfortunately, that will not work. The $SIG{__DIE__} handler
is simply called before die() does it's thing. After the
handler exits, die() continues on (unless you call die again within the handler). In order to make the block
continue executing when the exception is "handled", I have
to make a new version of die smart enough not to actually do
it in that case. Perhaps there should be a means of controlling whether it acts "globally" or not. P.S. I wrote the original post, and posted it "anonymously" by accident. Doh! -- O thievish Night, Why should'st thou, but for some felonious end, In thy dark lantern thus close up the stars? --Milton
In Section
Cool Uses for Perl
|
|