Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Pixel setting oddity - Image:Magickby afoken (Chancellor) |
on May 11, 2015 at 12:30 UTC ( [id://1126308]=note: print w/replies, xml ) | Need Help?? |
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
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|