Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: disable functions if module not installed

by almut (Canon)
on Nov 03, 2008 at 22:25 UTC ( #721229=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    our $is_magick;
    BEGIN {
      $is_magick = eval "require Image::Magick" ? 1 : 0;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://721229]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2017-01-17 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.