For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2006 > @INC









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author @INC
The Ghost

2006-01-10, 4:02 am

How can I permanently add to @INC? I have 2 versions of perl
installed and only use one of them. The reason for 2 versions is a
port system that refuses to rely on the already installed perl. So I
have:

$ /usr/bin/perl -e 'print join("\n", @INC)'
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6
/Library/Perl
/Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6
/Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1

AND

$ /opt/local/bin/perl -e 'print join("\n", @INC)'
/opt/local/lib/perl5/5.8.7/darwin-2level
/opt/local/lib/perl5/5.8.7
/opt/local/lib/perl5/site_perl/5.8.7/darwin-2level
/opt/local/lib/perl5/site_perl/5.8.7
/opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.8.7/darwin-2level
/opt/local/lib/perl5/vendor_perl/5.8.7
/opt/local/lib/perl5/vendor_perl

I really only want to use /usr/bin/perl, but the port system will put
modules into the /opt/local/bin/perl version which I want to use
from /usr/bin/perl.

Thanks!
Randal L. Schwartz

2006-01-10, 4:02 am

>>>>> "The" == The Ghost <ghost@madisonip.com> writes:

The> How can I permanently add to @INC?

Recompile Perl.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com