[plug] Config.pm

Ben New ben at leftclick.com.au
Sun Sep 28 13:01:11 WST 2003


James Devenish wrote:

>In message <3F765E60.60606 at leftclick.com.au>
>on Sun, Sep 28, 2003 at 12:06:56PM +0800, Ben New wrote:
>  
>
>>I'm trying to add a path to @INC,
>>    
>>
>[...]
>  
>
>>Config.pm files
>>    
>>
>
>(Noting that I don't understand Perl...) Might be a good idea not to
>modify files that are part of a package: upgrades will no longer be
>"perfect".
>  
>
Well after reading more and more of the perl manpages I finally found 
what I was looking for and it was as easy as I knew it had to be:
export PERL5OPT=-I/path/to/scripts

(or something to that effect).  So I'm figuring if that is in the 
environment that exists when Apache is run, then I'm sorted ;-)

Oh yeah, and I don't know what I was thinking with editing the .pm 
file.  Just shows how far off the mark I was; I just didn't know where 
to start because there was no file in /etc that looked like a Perl 
config file, and the "files" section under "man perl" just listed "@INC" 
which was not very helpful ;-\

>>#> find / -name Config.pm
>>    
>>
>
>If you find yourself doing this a lot (or even just occasionally), you
>might like to install the "locatedb" or "slocate" packages. They will
>build a file list on a nightly basis. Even if you are using a filesystem
>that is fast at `find /`, the consolidated locatedb database is a nice
>idea.
>  
>
Yep...  just haven't got around to it yet, since filesearching is not a 
very common occurrence ;-)

Ben


_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list