in reply to How can I get image height and width without using Image::Size?

I have put the curly braces around the codes.. but it doesn't work. Here is the error message: Can't locate Image/Size.pm in @INC What can I do??
  • Comment on Re: How can I get image height and width without using Image::Size?

Replies are listed 'Best First'.
RE: Answer: How can I get image height and width without using Image::Size?
by KM (Priest) on Aug 22, 2000 at 23:27 UTC
    Is Image::Size installed? Is it installed somewhere other than the directories in @INC?

    perl -e 'print $_ . "\n" for @INC'

    That will show you what is in @INC. If it is installed elsewhere, use this in your script:

    use lib qw(/path/to/it);

    Remember to use the path *up to* the Image directory. So, if it is installed in /home/you/perl/Image/Size.pm, use /home/you/perl
    If it isn't installed, then:

    perl -MCPAN -e 'install Image::Size'

    Cheers,
    KM