Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: disable functions if module not installed

by almut (Canon)
on Nov 04, 2008 at 13:59 UTC ( #721397=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\>perl -e"print require CGI;"
    1
    C:\>perl -e"print require CGIshamalamadingdong;"
    Can't locate CGIshamalamadingdong.pm in @INC 
    
  2. or download this
    $ perl -E '$ok = eval "require CGI" ? 1:0; say $ok'
    1
    $ perl -E '$ok = eval "require CGIshamalamadingdong" ? 1:0; say $ok'
    0
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-06 07:10 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