diff options
author | Mark Murray <markm@FreeBSD.org> | 2002-03-16 20:14:30 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2002-03-16 20:14:30 +0000 |
commit | fc75d0664419eb8c8f264d8f298df2cd155c8966 (patch) | |
tree | 4cf1274fa3ca68f7ecf6a3051e0c2243e378afc5 /contrib/perl5/lib/lib.pm | |
parent | 8947993a910c7e5d244200623325b9fcb54a9eee (diff) |
Notes
Diffstat (limited to 'contrib/perl5/lib/lib.pm')
-rw-r--r-- | contrib/perl5/lib/lib.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/perl5/lib/lib.pm b/contrib/perl5/lib/lib.pm index 98e2f733cb97..077dd633e7d6 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. |