in reply to Re: Error Handling with Packages
in thread Error Handling with Packages
so lazy programmers will just don't do it resulting on the worst kind of errors: unnoticed errors!foo() or die "foo failed";
Usually it's much better to croak(): module users would still be able to handle errors via eval if they wish, and when not, the final user will notice that something went wrong because the croak will reach them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error Handling with Packages
by anjoschu (Sexton) on May 24, 2005 at 08:55 UTC |