Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Handling non-fatal method error strings without exceptions or globals?

by Tanktalus (Canon)
on Jan 19, 2005 at 16:24 UTC ( [id://423426]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Result;
    
    ...
    }
    
    1;
    
  2. or download this
    require Result;
    sub complex_function {
    ...
      }
      return Result->new(1);
    }
    
  3. or download this
    unless (my $r = complex_function())
    {
      print "Error received: $r\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found