[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Image::Size and AutoLoad



OK, I've asked all my "so called" perl gurus around my work
place and they all admit limited ignorance... so I guess I
don't feel too bad asking this question.

I'm working on a "government job" and I needed to have the
size of various images in a directory. I went to CPAN and
pulled the Image::Size module and installed it. It looks
to be installed OK, but I get a problem with the AutoLoader.
I know some of the basics of the AutoLoader, but apparently
not enough to do myself any good. Here's the error message
I get:

> # Can't locate auto/Image/Size/gifsize.al in @INC.
> File 'Stoopid:Apps:MacPerl:lib:AutoLoader.pm'; Line 38
> 
> File 'Stoopid:Apps:MacPerl:lib:Image:Size.pm'; Line 354

I'm pretty sure there was no "gifsize.al" file in the
install package and I'm guessing that the AutoLoader is
just assuming that there should be one???

Anyway, I looked through Size.pm and it all the necessary
code seemed to be there and it looked to be reasonably small.
So I decided to hack it. I commented out the "use AutoLoader;"
line, then I commented out the AutoLoader call, and finally
I commented out the __END__ line. After these three hacks,
all works as advertised.

The question is, does anyone know the **RIGHT** way to fix it?

thanks,
jay

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch