As long as you are sure you are going to get an object. You may want to use the functional UNIVERSAL::isa() if you want to avoid your 'catch' crapping out when something does just a plain die $!
/J\
In reply to Re^3: the try/catch example from "Programming Perl" analyzed
by gellyfish
in thread the try/catch example from "Programming Perl" analyzed
by pemungkah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |