Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 perusing the Monastery: (10)
As of 2014-12-18 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (49 votes), past polls