Don't ask to ask, just ask | |
PerlMonks |
Re: Handling non-fatal method error strings without exceptions or globals?by itub (Priest) |
on Jan 19, 2005 at 16:19 UTC ( [id://423424]=note: print w/replies, xml ) | Need Help?? |
Another option is to have your functions return multiple values:
One caveat is that if for some reason you want to disregard the error and only want the result, you need to remember to use parentheses:
In Section
Seekers of Perl Wisdom
|
|