[kw-pm] Adding to @INC

Raymond broadswd at gmail.com
Wed Nov 4 14:52:39 PST 2009


You can add your modules into the site hierarchy, whose path is
compiled into perl by default.

You can expose the PERL5LIB environment variable with your paths in it.

If you're using taint mode for anything though this isn't an option.

Under apache you can do the above just for CGI, or in startup.pl or
similar under mod_perl.

Recompiling Perl is an option as well.



On 11/4/09, Robert Pike <roberthpike at yahoo.com> wrote:
> What's the easiest way to add onto the list of directories referenced by
> @INC (system level, not in the scripts themselves)? Thanks in advance for
> any help.
>
>
>       __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>

-- 
Sent from my mobile device


More information about the kw-pm mailing list