summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>1999-05-14 22:34:58 +0100
committerJarkko Hietaniemi <jhi@iki.fi>1999-05-18 16:25:49 +0000
commit160a7e377219ff437f0692a89b2530a641a78eb5 (patch)
treec0e9bed70b502f8418230e29368ea72d0c1c66d1 /installperl
parente0721b194eb92292b2e8df7063d6c95f6d0df0ed (diff)
downloadperl-160a7e377219ff437f0692a89b2530a641a78eb5.tar.gz
installperl
To: perl5-porters@perl.org Message-Id: <199905142034.VAA00865@crypt.compulink.co.uk> p4raw-id: //depot/cfgperl@3435
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl7
1 files changed, 5 insertions, 2 deletions
diff --git a/installperl b/installperl
index 208c276c8d..8077add93e 100755
--- a/installperl
+++ b/installperl
@@ -411,14 +411,17 @@ if (!$versiononly) {
}
}
my @otherperls;
+ my %otherperls;
for (@path) {
next unless m,^/,;
# Use &samepath here because some systems have other dirs linked
# to $mainperldir (like SunOS)
next if samepath($_, $binexp);
next if ($mainperl_is_instperl && samepath($_, $mainperldir));
- push(@otherperls, "$_/$perl$exe_ext")
- if (-x "$_/$perl$exe_ext" && ! -d "$_/$perl$exe_ext");
+ my $otherperl = "$_/$perl$exe_ext";
+ next if $otherperls{$otherperl}++;
+ push(@otherperls, $otherperl)
+ if (-x $otherperl && ! -d $otherperl);
}
if (@otherperls) {
print STDERR "\nWarning: $perl appears in your path in the following " .