Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: the try/catch example from "Programming Perl" analyzed

by gellyfish (Monsignor)
on Aug 19, 2004 at 14:43 UTC ( #384316=note: print w/ replies, xml ) Need Help??


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\


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://384316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2015-07-30 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls