Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Install (register) a custom module

by Anonymous Monk
on May 07, 2012 at 07:42 UTC ( #969209=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I developed a custom Perl module.
I wouldn't like to put things like:

use lib qw(/dir01/dir02/dir03/perlLibsRepo); use myPerlModule;

in all the pages that use the module.

The best thing would be to "call" the module as any other module installed with cpan:

use myPerlModule;

Is there any way to make cpan "register" my module even if it's not available in CPAN but only in the server's filesystem?

Thank you very much
Regards
P_Newby

Comment on Install (register) a custom module
Select or Download Code
Re: Install (register) a custom module
by moritz (Cardinal) on May 07, 2012 at 08:04 UTC
Re: Install (register) a custom module
by Corion (Pope) on May 07, 2012 at 08:05 UTC

    See perlrun on PERL5LIB, which can be used to expand the module search path of Perl.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-08-21 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls