Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
We don't bite newbies here... much
 
PerlMonks  

Re^13: eval to replace die?

by BrowserUk (Pope)
on Oct 08, 2010 at 15:31 UTC ( #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
Node Status?
node history
Node Type: note [id://864211]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-04-16 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls