Do you get any error messages if you print out the three $xes? (see Handling Exceptions)
Update: in particular, note that context (i.e. string/numeric) matters here. E.g.
$x = $image->Read(...); warn "$x" if "$x"; # string context: the error/warning message ( +if any) print 0+$x; # numeric context: the number of images read
In reply to Re: Image::Magick not printing all images
by almut
in thread Image::Magick not printing all images
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |