Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: using 'use' conditionally

by dilbert (Novice)
on Nov 05, 2002 at 11:03 UTC ( [id://210426]=note: print w/replies, xml ) Need Help??


in reply to using 'use' conditionally

The error output of the eval block is caught in the $@ variable, that's why you don't see any error message. Leave out the 'die', and try this:
if ($@){ die "Tk not installed. Can't run GUI. Error returned: $@\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-29 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found