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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: disable functions if module not installed
by ikegami (Patriarch) on Nov 04, 2008 at 12:20 UTC | |
by Anonymous Monk on Nov 04, 2008 at 12:43 UTC | |
by ikegami (Patriarch) on Nov 04, 2008 at 13:07 UTC | |
by Anonymous Monk on Nov 04, 2008 at 14:20 UTC | |
by lepetitalbert (Abbot) on Nov 04, 2008 at 13:55 UTC | |
Re^8: disable functions if module not installed
by almut (Canon) on Nov 04, 2008 at 15:29 UTC |
In Section
Seekers of Perl Wisdom