Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-09-19 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls