diff options
author | Paul Green <Paul.Green@stratus.com> | 2002-01-07 11:59:38 -0500 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2002-01-07 21:46:11 +0000 |
commit | 196918b01b6d6cccc18ae2da6d13eebfe1effc0c (patch) | |
tree | 76fdb3e6bf48586947e4dd67f2cb9c2716e2cac7 /t/test.pl | |
parent | ee45e09c1a4b5fcad89edc643e8528dd68030a37 (diff) | |
download | perl-196918b01b6d6cccc18ae2da6d13eebfe1effc0c.tar.gz |
Last patch needed to get Perl5.7 to build natively on VOS
Message-Id: <95AE3CDB3543D511883A0020485B38B90235349B@exna3.stratus.com>
p4raw-id: //depot/perl@14124
Diffstat (limited to 't/test.pl')
-rw-r--r-- | t/test.pl | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -368,11 +368,13 @@ sub which_perl { $Perl = File::Spec->catfile(File::Spec->curdir(), $perl); } } - - # Its like this. stat on Cygwin treats 'perl' to mean 'perl.exe' - # but open does not. This can get confusing, so to be safe we - # always put the .exe on the end on Cygwin. - $Perl .= $exe if $^O eq 'cygwin' && $Perl !~ /\Q$exe\E$/; + + # Build up the name of the executable file from the name of + # the command. + + if ($Perl !~ /\Q$exe\E$/i) { + $Perl .= $exe; + } warn "which_perl: cannot find $Perl from $^X" unless -f $Perl; |