}
}
- s/#\s*(.*)$//mg;
+ s/^\s*#\s*(.*)$//mg;
my ($num, $testname) = $1 =~ m/(\d+)\s*(.*)/;
if ($reason{skip}) {
$regex =~ s/\s+/\\s+/g;
$regex = '^\{\s*' . $regex . '\s*\}$';
- our $TODO = $reason{todo};
+ local $::TODO = $reason{todo};
like($deparsed, qr/$regex/, $testname);
}
}
my($y, $t);
/x${y}z$t/;
####
-# TODO new undocumented cpan-bug #33708"
+# TODO new undocumented cpan-bug #33708
# 55 (cpan-bug #33708)
%{$_ || {}}
####
-# TODO hash constants not yet fixed"
+# TODO hash constants not yet fixed
# 56 (cpan-bug #33708)
use constant H => { "#" => 1 }; H->{"#"}
####
-# TODO optimized away 0 not yet fixed"
+# TODO optimized away 0 not yet fixed
# 57 (cpan-bug #33708)
foreach my $i (@_) { 0 }
####
$ok = $results eq $expected;
}
- our $TODO = $reason{todo};
- print_err_line( $switch, $prog, $expected, $results, $TODO ) unless $ok;
+ local $::TODO = $reason{todo};
+ print_err_line( $switch, $prog, $expected, $results, $::TODO ) unless $ok;
ok($ok);