summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/lib/lib.pm
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-03-16 20:14:30 +0000
committermarkm <markm@FreeBSD.org>2002-03-16 20:14:30 +0000
commit3eac21f49bc763a6c0044b4afbc0c7ece760144f (patch)
tree4cf1274fa3ca68f7ecf6a3051e0c2243e378afc5 /contrib/perl5/lib/lib.pm
parent259bd53c06712c4ffb0ab7e06898c19ebf221b21 (diff)
downloadFreeBSD-src-3eac21f49bc763a6c0044b4afbc0c7ece760144f.zip
FreeBSD-src-3eac21f49bc763a6c0044b4afbc0c7ece760144f.tar.gz
Vendor import Perl 5.6.1
Diffstat (limited to 'contrib/perl5/lib/lib.pm')
-rw-r--r--contrib/perl5/lib/lib.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/perl5/lib/lib.pm b/contrib/perl5/lib/lib.pm
index 98e2f73..077dd63 100644
--- a/contrib/perl5/lib/lib.pm
+++ b/contrib/perl5/lib/lib.pm
@@ -32,6 +32,7 @@ sub import {
}
# Put a corresponding archlib directory infront of $_ if it
# looks like $_ has an archlib directory below it.
+ unshift(@INC, "$_/$archname") if -d "$_/$archname/auto";
unshift(@INC, "$_/$ver") if -d "$_/$ver";
unshift(@INC, "$_/$ver/$archname") if -d "$_/$ver/$archname";
}
@@ -49,6 +50,8 @@ sub unimport {
foreach (@_) {
++$names{$_};
++$names{"$_/$archname"} if -d "$_/$archname/auto";
+ ++$names{"$_/$ver"} if -d "$_/$ver";
+ ++$names{"$_/$ver/$archname"} if -d "$_/$ver/$archname";
}
# Remove ALL instances of each named directory.
OpenPOWER on IntegriCloud