Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re^2: Best Practices for Exception Handling

by demerphq (Chancellor)
on Jan 29, 2003 at 17:06 UTC ( [id://231016]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub bar
    {
    ...
      eval { $self->method( @args ); 1} 
           or $self->raise_error( $@, @_ ) and return undef;
    }
    
  2. or download this
    sub bar
    {
    ...
      eval { $self->method( @args ); 1} 
           or return $self->raise_error( $@, @_ );
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found