in reply to how to include a directory in @INC?
Assuming you are on a UNIX boxen, and you have sufficient (
ie, root-like ) powers, there is on evil solution. I am uncertain
of the security implications, so you may really want to think
twice before doing this for your webserver.
For every directory you wish to "permanently" add to @INC, create a symlink from the directory in your perl's site_perl ( eg, /usr/local/lib/perl5/site_perl ). Perl will cross the symlink when searching the paths.
This suggestion is expected to be taken at your own risk. DO NOT blame me if somebody figured out how to exploit this from your webserver.
Mik Mik Firestone ( perlus bigotus maximus )
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Re: how to include a directory in @INC?
by merlyn (Sage) on Jul 03, 2002 at 15:59 UTC |
In Section
Seekers of Perl Wisdom