summaryrefslogtreecommitdiff
path: root/lib/lib.pm
diff options
context:
space:
mode:
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;