Brethern
I'm installing CPAN modules on a Solaris system where I don't have admin privileges. So I'm installing in my own directory:
% perl Makefile.pl PREFIX=/home/throop/perl
This causes the code to actually be installed in
/home/throop/perl/lib/perl5/site_perl/5.8.5/sun4-solaris I have the impression that perl has enough sense to delve some of the way down this directory path—
perlrun says
Any architecture-specific directories under the specified locations are automatically included if they exist.
But what should I put in my path?
- /home/throop/perl/
- /home/throop/perl/lib
- /home/throop/perl/lib/perl5/site_perl/5.8.5
Will the final '/' on the path make a difference? Is the answer the same when I'm spec'ing the path via
- the PERL5LIB env variable,
- an -I switch invoking Perl on the command line,
- a use lib in the script?
Is the answer the same for all?
Finally, if I get the path right at the start (by any of these invocations) will it get passed correctly down to all the subsidiary modules that are invoked using use, do and require?
thanks
throop