Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Dying for a Good Japh

by tweetiepooh (Friar)
on Feb 02, 2006 at 10:35 UTC ( #527290=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Dying for a Good Japh
in thread Dying for a Good Japh

True but I'd already taken out the eval.

I guess it depends on what else you are doing. The eval stops the module load fail from dieing. This allows other lines to be added to the program which will run. When the die is hit the JAPH prints.
... eval {require "JAPH"}; print "Hello mum!\n"; die OUTPUT Hello mum! Can't locate JAPH in @INC ... ... ) at test.pl line xx ... propagated at test.pl line yy.


Comment on Re^5: Dying for a Good Japh
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (16)
As of 2014-07-22 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (122 votes), past polls