Download it from here:
<http://search.cpan.org/~gaas/IO-String-1.04/>
Then in the Terminal, cd to the directory, wherever you downloaded it to, and do the following steps:
IO-String-1.04 jd$ perl Makefile.PL IO-String-1.04 jd$ make IO-String-1.04 jd$ make test IO-String-1.04 jd$ sudo make install Password:
This is not really a question for the macperl list but for the macosx list
List-Subscribe: <mailto:[EMAIL PROTECTED]>
JD
At 11:00 pm -0500 16/1/04, Ingo Weiss wrote:
use Image::Info qw(image_info dim);
my $info = image_info("image.jpg"); if (my $error = $info->{error}) { die "Can't parse image info: $error\n"; }
my $color = $info->{color_type}; my($w, $h) = dim($info);
I have worked with modules before (CGI.pm) but I can't really make sense of the qw-syntax in line 1. Anyway, when I run the sript, I get an error:
Can't parse image info: Can't locate IO/String.pm in @INC
Has anybody in the list worked with image::Info before and can give me a hint why that is and what to do about it?