【发布时间】:2009-04-25 15:38:38
【问题描述】:
我通过 MacPorts 安装了以下组件:
p5-image-info @1.16 (perl, graphics)
Extract meta information from image files
它在its website 中说您可以使用它
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 模块获取图像的元数据?
【问题讨论】: