This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Serialise changes to %^H onto the current COP. Return the compile time
[perl5.git] / t / test.pl
index e900d00..cdfa018 100644 (file)
--- a/t/test.pl
+++ b/t/test.pl
@@ -506,7 +506,7 @@ sub runperl {
        $ENV{PATH} =~ /(.*)/s;
        local $ENV{PATH} =
            join $sep, grep { $_ ne "" and $_ ne "." and
-               ($is_mswin or !((stat$_)[2]&0020)) }
+               ($is_mswin or !(stat && (stat _)[2]&0022)) }
                    split quotemeta ($sep), $1;
 
        $runperl =~ /(.*)/s;