Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: disable functions if module not installed

by pileofrogs (Priest)
on Nov 03, 2008 at 22:50 UTC ( #721234=note: print w/ replies, xml ) Need Help??


in reply to Re^2: disable functions if module not installed
in thread disable functions if module not installed

Read up on eval in [perlfunc].

Short answer:

Block

eval { die "You commie!" };

String

my $death = 'die'; eval "$death \"You commie!\";"


Comment on Re^3: disable functions if module not installed
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2015-07-06 08:19 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 (70 votes), past polls