Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 pondering the Monastery: (5)
As of 2015-11-26 01:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls