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;
| [reply] [Watch: Dir/Any] [d/l] [select] |
eval { require Image::Magick };
my $is_Magick = $@ ? 0 : 1;
produces out of memory too :(
I have : XP, 2Gb ram, perl 5.10, IM 6.4.4-2, PerlMagick installed with IM installer
Thanls again.
"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates
| [reply] [Watch: Dir/Any] [d/l] |
produces out of memory too
This doesn't make much sense, as the eval { ... } is essentially
also just loading the module (or trying to), only with fatal errors trapped.
I have : XP, 2Gb ram, perl 5.10, IM 6.4.4-2, PerlMagick
This is your web server machine, is it?
| [reply] [Watch: Dir/Any] [d/l] |
eval { die "You commie!" };
String
my $death = 'die';
eval "$death \"You commie!\";"
| [reply] [Watch: Dir/Any] [d/l] [select] |