diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-07 21:01:02 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-07 21:01:02 +0000 |
commit | eff5376413b6d854183cc46d552065f2e323945d (patch) | |
tree | e4853e93f36e559508f3ed167e392398382e4c99 /t | |
parent | 991e6d419e6cb68835dda77416b60c341a13a26e (diff) | |
download | perl-eff5376413b6d854183cc46d552065f2e323945d.tar.gz |
Tweak the $Perl computation.
p4raw-id: //depot/perl@13522
Diffstat (limited to 't')
-rw-r--r-- | t/test.pl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -282,8 +282,10 @@ BEGIN: { # We do this at compile time before the test might have chdir'd around # and make sure its absolute in case they do later. my $Perl = $^X; -$Perl = File::Spec->rel2abs(File::Spec->catfile(File::Spec->curdir(), $Perl)) - if $^X eq "perl$Config{_exe}"; +$Perl = + File::Spec->rel2abs(File::Spec->catfile(File::Spec->curdir(), + "perl$Config{_exe}")) + if $Perl =~ /^perl\Q$Config{_exe}\E$/i; warn "Can't generate which_perl from $^X" unless -f $Perl; # For subcommands to use. |