Skip Menu |
 

This queue is for tickets about the perl5lib CPAN distribution.

Report information
The Basics
Id: 43443
Status: new
Priority: 0/
Queue: perl5lib

People
Owner: Nobody in particular
Requestors: ville.skytta [...] iki.fi
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.02
Fixed in: (no value)



Subject: Should consider PERLLIB as well
Download (untitled) / with headers
text/plain 481b
Should perl5lib add dirs in $ENV{PERLLIB} if $ENV{PERL5LIB} is not defined? That's what perl does itself, and PERLLIB is affected by taint mode just like PERL5LIB. I suppose something like this would do the trick: use lib map { /(.*)/ } split /$Config{path_sep}/ => defined($ENV{PERL5LIB}) ? $ENV{PERL5LIB} : $ENV{PERLLIB}; Using "defined" instead of simply "$ENV{PERL5LIB} || $ENV{PERLLIB}" because that's what perl itself is documented to do (and so that PERL5LIB=0 works).


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.