Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

Comment on Install (register) a custom module
Select or Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-10-04 08:04 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (99 votes), past polls