我通过MacPorts的安装以下组件:
p5-image-info @1.16 (perl, graphics)
Extract meta information from image files
它说,在其网站上 ,你可以用它
Usage is something like this:
use Image::Info qw(image_info);
@info = image_info("filename");
$refto_hash_describing_1st_image = $info[0];
$refto_hash_describing_2nd_image = $info[1];
但是,我没有成功运行
$perl use Image::Info qw(image_info);
-bash: syntax error near unexpected token `('
$
你怎么能得到的图像由Perl模块,元数据?