Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

water's scratchpad

by water (Deacon)
on Jun 02, 2004 at 05:44 UTC ( #359188=scratchpad: print w/ replies, xml ) Need Help??

se strict; package Foo; sub new { return bless({},'Foo'); } sub DESTROY { my ($self) = @_; print "in destroy\n"; local $SIG{__DIE__} = sub {CORE::die @_ }; die "inside destroy and die"; } package main; # here i want to trap eval { my $x = Foo->new; $x = undef; }; print "after eval, \$@ = $@\n"; # here i want the die to really die my $y = Foo->new; $y = undef; print "if I make it here, destroy trapped the die, sigh\n";
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-07-29 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls