Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by itub (Priest)
on Jan 19, 2005 at 16:19 UTC ( #423424=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($result, $error) = function($arg);
    if ($error) {
        # do something...
    }
    
  2. or download this
    ($result) = function($arg); # get the result only
    $result   = function($arg); # WRONG!!! gets the error only
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2016-06-28 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (363 votes). Check out past polls.