@INC strangeness

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
error as follows

bash-2.03$ ./!!
../spamstats0.6a.pl -help
Can't locate Compress/Zlib.pm in @INC (@INC contains:
laris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris
_perl/5.005 .) at ./spamstats0.6a.pl line 155.
BEGIN failed--compilation aborted at ./spamstats0.6a.pl line 155.

so it cant find what its lookin for even though i have installed it

bash-2.03$ perl -e "print join(\"\n\", @INC);"

why is it still looking at the eralier version of perl in /usr/bin/perl
as oppossed to usr/local/bin given by

bash-2.03$ which perl
bash-2.03$ perl -v

This is perl, v5.6.1 built for sun4-solaris

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com /, the Perl Home Page.

thanks for the help

help me finish the week on a positive note perlmongers!!


Re: @INC strangeness

Quoted text here. Click to load it
Quoted text here. Click to load it

Well, you didn't provide any code, so there's no way to be sure, but I'd
be willing to bet your shebang line in spamstats0.6a.pl  is
instead of

Paul Lalli

Re: @INC strangeness

yeah paul absoluly right - although i did think of that 5 seconds after
posting.... thanks fr the help though

have a good weekend all!


Site Timeline