Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^13: eval to replace die?

by BrowserUk (Patriarch)
on Oct 08, 2010 at 15:31 UTC ( [id://864211]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Exception::Class (
        'MyException',
    ...
            alias  => 'throw_fields',
        },
    );
    
  2. or download this
     
    eval{ die { a=>b=>c=>d=>}; } or print %{ $@ };;
    c d a b
    
  3. or download this
      # catch
      if ( $e = Exception::Class->caught('MyException') ) {
    ...
          $e = Exception::Class->caught();
          ref $e ? $e->rethrow : die $e;
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2025-03-17 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.