disable functions if module not installedby lepetitalbert (Monsignor)
|on Nov 03, 2008 at 21:21 UTC||Need Help??|
lepetitalbert has asked for the
wisdom of the Perl Monks concerning the following question:
Hello dear Monks,
I have a script which needs Image::Magick for some functions but not all.
I'd like to disable these functions if Image::Magick is not installed
I tried to do something like :
I found some post on perlmonks and other places but nothing works
The first example didn't change $is_magick, the second one gives me an error 500.
How can do this ?
Have a nice day !
updated fixed typo
"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates