in reply to Re: How to instrust Perl to load the right modules based on architecture?
in thread How to instrust Perl to load the right modules based on architecture?

Finally, the 'use lib...' statements comes like this:
use lib "$FindBin::Bin/lib/perl5"; use lib "$FindBin::Bin/lib/perl5/site_perl"; use lib "$FindBin::Bin/lib64/perl5"; use lib "$FindBin::Bin/lib64/perl5/site_perl";
And, the script works well in both i386 and x86_64 boxes. But what's the difference between "lib/perl5" and "lib/perl5/site_perl", the lib module wouldn't add the 'site_perl' subdirectory automatically. what does "site_perl" mean?
  • Comment on Re^2: How to instrust Perl to load the right modules based on architecture?
  • Download Code

Replies are listed 'Best First'.
Re^3: How to instrust Perl to load the right modules based on architecture?
by ikegami (Patriarch) on Oct 06, 2008 at 09:09 UTC

    On my machine, I have lib and site\lib in my Perl directory. The former houses the core modules (those that come with Perl). The latter houses the rest. I suspect there is a parallel.