summaryrefslogtreecommitdiff
path: root/lib/lib.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-11 16:55:48 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-11 16:55:48 +0000
commitabef537ad8d3230927d259211d4c0d673d28d7b7 (patch)
tree961a87049c0700a6cf0bb507f5846817884ee358 /lib/lib.pm
parente8cd7eae0498ecc1fd3801fe31604cd970a11dd7 (diff)
downloadperl-abef537ad8d3230927d259211d4c0d673d28d7b7.tar.gz
change#4327 was inefficient
p4raw-link: @4327 on //depot/perl: aeb5d71d10f95df991fb160dc1adaa06bf9515f4 p4raw-id: //depot/perl@4343
Diffstat (limited to 'lib/lib.pm')
-rw-r--r--lib/lib.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/lib.pm b/lib/lib.pm
index ea3ea5ef73..d35510df86 100644
--- a/lib/lib.pm
+++ b/lib/lib.pm
@@ -28,9 +28,11 @@ sub import {
unshift(@INC, "$_/$archname") if -d "$_/$archname/auto";
unshift(@INC, "$_/$archname/$]") if -d "$_/$archname/$]/auto";
}
- # remove trailing duplicates
- @INC = grep { ++$names{$_} == 1 } @INC;
}
+
+ # remove trailing duplicates
+ @INC = grep { ++$names{$_} == 1 } @INC;
+ return;
}
@@ -45,6 +47,7 @@ sub unimport {
# Remove ALL instances of each named directory.
@INC = grep { !exists $names{$_} } @INC;
+ return;
}
1;