Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Tanktalus (Canon)
on Jan 19, 2005 at 16:24 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-05-26 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?