To see what directories are in your Perl's path, you can run this at the
command line.  It should work on Win or *nix.

perl -e "print join(qq[\n], @INC)"

You might instead want to create your own "private" library by setting the
PERL5LIB environment variable.  It will add a directory to the beginning of
your @INC path.

So, for example, on Unix you might create a directory called ~/my_modules/.
You would place the module in ~/my_modules/CJB/String.pm.  ...And in your
environment you would set PERL5LIB to ~/my_modules/.  On *nix (with bash)
add to your .bashrc "export PERL5LIB=~/my_modules/.

Rob

-----Original Message-----
From: Christopher J. Bottaro [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 2:40 PM
To: [EMAIL PROTECTED]
Subject: where to put modules?


lets say i made a module called cjb::string.  where would i put
cjb/string.pm?  i'm using fedora core 1 and the default perl installation. 
i've read in my book about modules and a little bit about them on
perldoc.com, but i couldn't find the answer to this.

thanks.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to