I have ended up with a few versions of Perl on one server - a couple of 5.005x version and 5.8.
The webserver (Apache) is using one of the 5.005 version but the command line is using Perl 5.8.
Problem is when I install modules using CPAN they are being stored in the 5.8 libraries - how can I change the @INC for 5.005 to include the 5.8 libraries?
Or is there a better way? (I keep hearing of problems with 5.8 so I'd rather not remove the 5.005)
Thanks in advance
PPM has a 'Target' command where you can set the target for package downloads. Look in your perl documentation for PPM. What platform ('nix or Windows)?
You say 'Apache is using one of the 5.005 version'. Apache uses whatever program is specified by the #! line of the script, so you can change that by changing your script. To be honest, this is not a feature of Apache I like for Windows platforms (although it is reasonable and standard practice for 'nix platforms), so if you are talking about a Windows platform, and your Apache is configured to ignore the!# line and use a specific version of perl to process your scripts, I'd sure be interested to find out how you did that.
Shawn
lib - manipulate @INC at compile time=head1 SYNOPSIS
use lib LIST;
no lib LIST;
=head1 DESCRIPTION
This is a small simple module which simplifies the manipulation of @INC
at compile time.It is typically used to add extra directories to perl's search path so
that later C<use> or C<require> statements will find modules which are
not located on perl's default search path.
You can also do:
BEGIN { unshift(@INC, LIST) }
Scott Geiger