in reply to Re^5: disable functions if module not installed
in thread disable functions if module not installed
hi almut,
It's my notebook.
Ok after a reboot
#!/usr/bin/perl -w use strict; use warnings; 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>";
works.
Found what send me out of memory : a use lib statement ?!
Is that expected behaviour ?
Time to sleep.
Thanl you all :)
Have a nice, nice day !
"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates
In Section
Seekers of Perl Wisdom