Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 contemplating the Monastery: (7)
As of 2014-10-21 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (96 votes), past polls