Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 perusing the Monastery: (8)
As of 2014-12-19 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (69 votes), past polls