Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Style Point: Catching eval { } errors

by diotalevi (Canon)
on Nov 24, 2003 at 21:23 UTC ( #309696=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval {
        # Do stuff
        1;
    } or do {
        # Handle errors
    };
    
  2. or download this
    eval { ... ; 1}
        or die "Barfoo ... $@";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://309696]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2017-03-30 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (364 votes). Check out past polls.