in reply to Exporting perl5lib to local directory and using local::lib module to access it.

Use either PERL5LIB or local::lib, don't mix them.

Also, are you sure that the directory is named /home/my_code_folder and not /home/naren87/my_code_folder?

Replies are listed 'Best First'.
Re^2: Exporting perl5lib to local directory and using local::lib module to access it.
by Naren87 (Novice) on Sep 11, 2015 at 05:46 UTC
    Okay, if I am using local::lib, then should the module files downloaded from cpan be present in that dir? and what if the module like Bio::Phylo with multiple submodules is needed?

      I'm unclear on what you mean by "downloaded from CPAN". The setup of local::lib is documented with examples in local::lib. If you follow that setup, you should be able to install all modules using the cpan tool (or cpanm).

      Note that the documented setup in local::lib differs from what you have told us so far. Your setup claims /home/my_code_folder but local::lib documents /home/username/perl5/lib/perl5. You might want to reread the documentation in local::lib and compare that to your current setup.

        Thanks   perl -Mlocal::lib This listed all required commands . I chose the export PERL5LIB=''