Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Rethrowing with die $@ considered harmful

by ysth (Canon)
on Jul 18, 2006 at 00:07 UTC ( [id://561895]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use overload q!""!=>sub{ eval { "whoops" } };
    eval { die bless {} };
    die $@ if $@;
    
  2. or download this
    use overload q!""!=>sub{ eval { "whoops" } };
    eval { die bless {} };
    my $exception = $@;
    die $exception if $exception;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://561895]
Approved by GrandFather
Front-paged by bobf
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found