Read the Error documentation. except is a call back that is used to help determine how to handle the exception:
The return value from this block should be a HASHREF or a list of key-value pairs, where the keys are class names and the values are CODE references for the handler of errors of that type.
Your test code does not make sense.
In reply to Re^2: Exception Handling in Perl
by GrandFather
in thread Exception Handling in Perl
by nvivek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |