in reply to Re: BEGIN, END, eval and die.
in thread BEGIN, END, eval and die.

I did not realize the $@ variable is tied just to the eval code. This makes sense.
Using a $SIG{__DIE__} handler seems to be exactly what I was looking for. Will this work on the windows platform as well?

THANKS!!
zzspectrez

Replies are listed 'Best First'.
Re: Re: Re: BEGIN, END, eval and die.
by Chmrr (Vicar) on Nov 20, 2000 at 02:57 UTC
    Yes -- but that's only because it's a Perl-generated signal that never touches the OS. So Windows' lack of signal support doesn't even get brought into play.

    perl -e 'print "Just use $^X$\"$]!$/"'