develooper Front page | perl.beginners | Postings from March 2002

Installing modules on website

Thread Next
From:
Motherofperls
Date:
March 20, 2002 04:18
Subject:
Installing modules on website
Message ID:
3f.8687cb9.29c9d6f3@aol.com
I was reading and came across this code:
I put the contents of Image-Size-2.98 under the Image directory.

use lib qw(/home/yrkylady/www/cgi-bin/perl/Image);
eval("use Image::Size 2.98;");
(print("Error: $@"), exit(-1)) if $@;

And when I try to open my file I get this error:

Error: Can't locate Image/Size.pm in @INC (@INC contains: 
/home/yrkylady/www/cgi-bin/perl/Image /usr/lib/perl5/5.6.0/i686-linux 
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i686-linux 
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 5) line 
1. BEGIN failed--compilation aborted at (eval 5) line 1. 

Did I use the right syntax?
Any suggestions?


Thanks 
Tricia

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About