As far as error handling, always use Carp -- it lets the user know where in HIS code the error started, and can even give a stack backtrace to show what propagated the error. Also, consider having function return false and setting some package error variable.
japhy --
Perl and Regex Hacker
In reply to Re: How to write library code
by japhy
in thread How to write library code
by jorg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |