Harry -- ...and then Harry Putnam said... % % I've been pounding perldoc for a while this morning trying to find a % clear technique described to add directories to @INC (permanently).
There are a number of ways to *update* @INC, but I know of no way to permanently *change* it. I think you're looking at a reinstall if you really, really need the latter. You can use -I as you mentioned; you can also set $PERLLIB or $PERL5LIB as in bash-2.05a$ env PERLLIB=/tmp/perllib PERL5LIB=/tmp/perl5lib perl -V | tail -15 Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under freebsd Compiled at Jul 4 2002 23:57:31 %ENV: PERL5LIB="/tmp/perl5lib" PERLLIB="/tmp/perllib" @INC: /tmp/perl5lib /home/davidtg/local/lib/perl5/5.6.1/freebsd/i386 /home/davidtg/local/lib/perl5/5.6.1 /home/davidtg/local/lib/perl5/site_perl/5.6.1/freebsd/i386 /home/davidtg/local/lib/perl5/site_perl/5.6.1 /home/davidtg/local/lib/perl5/site_perl (note that PERL5LIB overrides PERLLIB; try the above without PERL5LIB to see the difference); you can also 'use lib' as in bash-2.05a$ \ > perl -e 'use lib ("/tmp/perllib","/tmp/perl5lib"); \ > foreach (@INC) { print "$_\n" }' /tmp/perllib /tmp/perl5lib /home/davidtg/local/lib/perl5/5.6.1/freebsd/i386 /home/davidtg/local/lib/perl5/5.6.1 /home/davidtg/local/lib/perl5/site_perl/5.6.1/freebsd/i386 /home/davidtg/local/lib/perl5/site_perl/5.6.1 /home/davidtg/local/lib/perl5/site_perl . if you prefer to depend on the script instead of on the environment; there are probably other ways as well :-) HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg28624/pgp00000.pgp
Description: PGP signature