in reply to Image::Magick not printing all images
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
|
|---|