Hi Dariusz,

On Thu, 9 May 2013 10:08:38 -0500
Dariusz Dolecki <dariusz.dole...@gmail.com> wrote:

> How do I add existing custom built perl modules that were built on a
> different system to another one, I have copied over the .pm file.
>

Put them in the @INC :

[ IRC ]
<rindolf> perlbot: @INC
<perlbot> rindolf: To change @INC (perldoc perlvar), 'use lib' (perldoc lib),
or use the -I option to perl (perldoc perlrun), or set the PERLLIB or PERL5LIB
environment variables (perldoc perlrun), or recompile perl. See also local::lib
for making setting @INC easier.  
[ END IRC ]

Note that it is a good idea to package code as CPAN-like distributions
(Foo-Bar-1.23.tar.gz):

* http://perl-begin.org/topics/cpan/ (a link on a site that I maintain).

* http://perl-begin.org/topics/modules-and-packages/ (another link from there).

* http://perl101.org/ (not my site).

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
List of Text Processing Tools - http://shlom.in/text-proc

Major Kira: Well, duh! The prophets spoke of several of The Invisible’s
children and their whereabouts.
Jadzia: Major, you and I will need to talk someday about that “duh”.
    — http://www.shlomifish.org/humour/Star-Trek/We-the-Living-Dead/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to