If you are using bash as you shell, something like: export PERL5LIB=${PERL5LIB}:/usr/local/project/packages
That will set the global search path for perl to find modules to include '/usr/local/project/packages'. However, the better way to handle this is to set up a directory that you use for all your perl modules. Then, get in the habit of developing modules for release on CPAN (but you don't need to actually release them). There are several modules that are designed to help build portable, installable modules. Give one of those a try. Sean On 3/12/06 8:02 PM, "Augusto Flavio" <[EMAIL PROTECTED]> wrote: > Hi, > > > I'm working in a project and i want include a directory (my modules) to perl's > search path. > > > I have this structure: > > /usr/local/project > /usr/local/project/packages > > Then i create a index.cgi on root folder with the theses lines: > > #!/usr/bin/perl > > use strict; > use Cwd; > > use lib getcwd."/packages"; > use setup; > > print ola(); > > > The problem that i see here is that i always need insert the lines : > > use lib getcwd."/packages"; > use setup; > > on each source files. > > Have a best solution for it? Maybe make a symbol link on /usr/lib/perl/5.8. > But i don't link of this solution. > > any idea? > > > ps.: Sorry for my english > > Thanks for all > > > --------------------------------- > ____________________________________________________ > --------------------------------- > Yahoo! Messenger com voz - Instale agora e faça ligações de graça. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>