in reply to Re^2: disable functions if module not installed
in thread disable functions if module not installed
almut your code gave me an out of memory too.
Weird. Can you just plain load the module with use Image::Magick; (or require Image::Magick;)? In case the machine (or user limit) doesn't provide sufficient memory to load the module (which in theory could be possible), I'd expect that you get "out of memory" either way.
An example of one of these block eval's ?
eval { require Image::Magick }; my $is_magick = $@ ? 0 : 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: disable functions if module not installed
by lepetitalbert (Abbot) on Nov 03, 2008 at 23:05 UTC | |
by almut (Canon) on Nov 03, 2008 at 23:17 UTC | |
by lepetitalbert (Abbot) on Nov 03, 2008 at 23:55 UTC | |
by lepetitalbert (Abbot) on Nov 04, 2008 at 11:19 UTC | |
by ikegami (Patriarch) on Nov 04, 2008 at 12:20 UTC | |
| |
by almut (Canon) on Nov 04, 2008 at 15:29 UTC |
In Section
Seekers of Perl Wisdom