http://www.perlmonks.org?node_id=780213

vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I was installing perl modules in my local directory using the PREFIX in CPAN/MyConfig.pm , I set the path as /home/ree/General/perl/ and, I was saving the path of each installed modules in the PERL5LIB environment variable in my .bashrc file as below,

export PERL5LIB="$PERL5LIB:/home/ree/General/perl/local/share/perl/5.8.8/:/home/ree/General/perl/share/perl/5.8.8/:/home/ree/General/perl/local/lib/perl/5.8.8/:/home/General/perl/share/perl/5.8.8/" So I am adding the path in this bash file, whenever I install a perl module

Is there any other way to specify only single path in PERL5LIB , where all the perl modules gets installed ?

Update

What I am asking that I want all the perl modules in a single directory instead of going 'local/share' or 'share/lib/'