in reply to How to set the path of cpan library in bash script

If I've understood you correctly, then all you need to do is:

export PERL5LIB=~/perl_lib

The use of this environment variable is given in the perlrun manpage.

Replies are listed 'Best First'.
Re^2: How to set the path of cpan library in bash script
by viktor (Acolyte) on Sep 20, 2013 at 11:38 UTC
    thanks :) it worked .