Is there any method to more permanently modify the include path? I didn't notice any environment variables, is it stored in the registry or does ActiveState's Perl distro pull in anysort of configuration file?
On Tue, 8 Mar 2005 00:42:11 +0100, John Doe <[EMAIL PROTECTED]> wrote: > Hello James > > Am Montag, 7. M�rz 2005 22.32 schrieb James W. Thompson, II: > > How is the lib path set with ActiveState Perl? > > Sidenote - To show the predefined paths, execute from command line: > > perl -e 'print join "\n", @INC' > > > Can I just drop my custom *.pm files into the /site/lib or /lib folders > >Y under the ActiveState installation? > > The module search uses the order in which they occur in @INC. > The first module found with a certain name is used, even if there are several > modules with the same name in different paths. > > You could put your modules in one of the paths shown, but usually it's better > to use your own directory/directories with your modules to separate them from > the system modules > (you can group them sensefully in different paths, and with a group of related > modules you often have a directory tree with modules in it). > > If you use your own directory, you must put a line like the following in your > scripts to enable perl to find your modules: > > use lib 'path_to_your_module_dir_tree'; > > this will change the @INC variable automatically by putting your path in the > front of the path list. > (this way, you can override default modules in default paths, because your > path is searched first) > > Documentation: > perldoc lib > > (now I see that you will find about the same I've written above...) > > > James W. Thompson, II (New Orleans, LA) > > I hope you did understand my bad english :-) > > greetings joe > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- James W. Thompson, II (New Orleans, LA) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
