Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: BEGIN, END, eval and die.

by zzspectrez (Hermit)
on Nov 19, 2000 at 12:30 UTC ( [id://42413]=note: print w/replies, xml ) Need Help??


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$\"$]!$/"'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://42413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-18 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found