You're describing a typical try ... catch situation. Have the error die with the message, call with eval {}, and check $@ after eval returns.
After Compline,
Zaxo
In reply to Re: error handling
by Zaxo
in thread error handling
by archon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |