$reason = 'skipping $&' if $reason eq '' && $skip_amp;
$result =~ s/B//i unless $skip;
- for my $study ('', 'study $subject') {
+ for my $study ('', 'study $subject', 'utf8::upgrade($subject)',
+ 'utf8::upgrade($subject); study $subject') {
+ # Need to make a copy, else the utf8::upgrade of an alreay studied
+ # scalar confuses things.
+ my $subject = $subject;
my $c = $iters;
my ($code, $match, $got);
if ($repl eq 'pos') {
\$got = "$repl";
EOFCODE
}
+ #$code.=qq[\n\$expect="$expect";\n];
+ #use Devel::Peek;
+ #die Dump($code) if $pat=~/\\h/ and $subject=~/\x{A0}/;
{
# Probably we should annotate specific tests with which warnings
# categories they're known to trigger, and hence should be