good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Best Practices for Exception Handlingby particle (Vicar) |
on Jan 29, 2003 at 01:13 UTC ( [id://230826]=note: print w/replies, xml ) | Need Help?? |
my method is similar, but different...
the method sets an error and returns undef, allowing the caller to deal with the error as it sees fit. of course, you might want to handle a method that can return 0 by using defined ~Particle *accelerates*
In Section
Seekers of Perl Wisdom
|
|