http://www.perlmonks.org?node_id=384316


in reply to Re^2: the try/catch example from "Programming Perl" analyzed
in thread the try/catch example from "Programming Perl" analyzed

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\

Replies are listed 'Best First'.
Re^4: the try/catch example from "Programming Perl" analyzed
by Arunbear (Prior) on Aug 19, 2004 at 14:55 UTC
    Thanks, it would also have crapped out if $@ was undefined.