Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://969209]
Approved by moritz
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-06-21 11:00 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.