in reply to Re^6: disable functions if module not installed
in thread disable functions if module not installed
Hi Monks,
going nuts !
#!/usr/bin/perl -w use strict; use warnings; use diagnostics; eval { require Image::Magick }; my $is_Magick = $@ ? 0 : 1; print "Content-type: text/html; charset=ISO-8859-1\n\n"; print "<h1>$is_Magick</h1>";
which finally works on my XP box, now gives me
Deep recursion on subroutine "Image::Magick::Autoload"
and an out of memory ! on a debian server
has anyone a real working example ? an idea ? anything ? I cannot believe this can't be done !
thanks
Have a nice day !
"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates
In Section
Seekers of Perl Wisdom