Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

How to set the path of cpan library in bash script

by viktor (Acolyte)
on Sep 20, 2013 at 11:15 UTC ( #1055000=perlquestion: print w/ replies, xml ) Need Help??
viktor has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I installed cpan module "File-Copy-Link-0.113" locally by using this command $ perl Makefile.PL PREFIX=~/perl_lib LIB=~/perl_lib in this folder /home/figo/perl_lib.

I have a bash script which needs to use this module and which comes default as " for module in File::Spec File::Spec::Link"

How i can set the path of the File::Spec and File::Speck::Link which is lying in /home/figo/perl_lib/File/Speck in the bash script? thanks

Comment on How to set the path of cpan library in bash script
Re: How to set the path of cpan library in bash script
by hippo (Curate) on Sep 20, 2013 at 11:21 UTC

    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.

      thanks :) it worked .

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1055000]
Approved by hdb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-09-17 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls