try a combination of eval and die for that. ex:
then you check the value of $@ to get the 'death' message, and do your deed.eval { if .... { die 'Error Message 1'; else { die 'Error Message 2'; } };
In reply to Re: Can I catch exceptions
by Chady
in thread Can I catch exceptions
by richmusk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |