Aren't you getting any warnings for that? I'm surprised Image::Magick doesn't complain about the invalid input.
The posted code has a bare string eval without any error checks ($@), so most errors will be silent. Also, Image::Magick requires a lot of manual error checks because it does not use perl's exception mechanism (i.e. die), but instead requires checking return values (as in C). This is documented in http://www.imagemagick.org/script/perl-magick.php#exceptions. The posted code lacks those checks, too.
Alexander
In reply to Re^2: Pixel setting oddity - Image:Magick
by afoken
in thread Pixel setting oddity - Image:Magick
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |