perl - How can I modify my CPAN area to require only one directory in my @INC path? -


i have installed bunch of cpan modules in area. seems each package wants installed somewhere different under prefix.

in case, have use this:

setenv cpan_dir <my root>/perl-5.12.2_cpan  setenv perllib $cpan_dir/install/lib64/site_perl/x86_64-linux:$cpan_dir/install/lib/5.12.2:$cpan_dir/install/lib/site_perl/x86_64-linux:$cpan_dir/install/lib/site_perl:$cpan_dir/install/lib/perl5:$cpan_dir/install/lib/site_perl/5.12.2:$cpan_dir/install/lib/site_perl/5.12.2/x86_64-linux 

i'd able setup package 'release' area requires only:

setenv perllib <one dir> 

or

use lib '<one dir>'; 

surely not novel idea. what's trick?

use lib , perl5lib both add not directories specify, expected version or arch subdirectories under them. sure have problem here?

if so, can show example use lib not working, including perl -v output?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -