Throwing an exception is a fine but different style of error handling. It requires that the caller wrap loading in eval to handle an error. In either case the module's docs need to specify how errors manifest to the caller, who is the only one who knows what to do with them.
Value error handling can get a message from $! if the module sets it and the interim code does not.
After Compline,
Zaxo
In reply to Re^3: why require a true value
by Zaxo
in thread why require a true value
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |