in reply to How to write library code
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
|
|---|