develooper Front page | perl.perl5.porters | Postings from October 2003

CPAN.pm likes PERL5LIB, ignores PERLLIB?

Thread Next
From:
Anthony Heading
Date:
October 12, 2003 22:11
Subject:
CPAN.pm likes PERL5LIB, ignores PERLLIB?
Message ID:
20031013051022.GA9221@tkd-fires-02.ja.jpmorgan.com

Hi,

I've needed to delete a line from CPAN.pm, as per the patch below.  

Why is this line here?  Its effect seems fairly clear -
set_perl5lib says:

    my $env = $ENV{PERL5LIB};
    $env = $ENV{PERLLIB} unless defined $env;

so the consequence is that the value of PERLLIB is
ignored when synthesizing PERL5LIB for running tests.

Any pointers as to the intended logic?

Anthony


--- CPAN.pm.Orig        Mon Oct 13 13:56:04 2003
+++ CPAN.pm     Mon Oct 13 13:58:07 2003
@@ -4739,7 +4739,6 @@
         return;
     }
 
-    local $ENV{PERL5LIB} = $ENV{PERL5LIB} || "";
     $CPAN::META->set_perl5lib;
     my $system = join " ", $CPAN::Config->{'make'}, "test";
     if (system($system) == 0) {




This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data 
and other information are not warranted as to completeness or accuracy and 
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About