Two threads about similar topics with helpful replies: Croak, return et al. and Using die() in methods - the latter is yours!
All I have to add at the moment is that your concatenation of error messages is beginning to look like a stack trace, so you really should look into Carp - I'd say Carp is a best practice for throwing errors from modules. (Also, your use of eval still isn't reliable, as mentioned in both links above.)
In reply to Re: Best practices for handling errors
by Anonymous Monk
in thread Best practices for handling errors
by v_melnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |