}
require "./test.pl";
-plan( tests => 12 );
+plan( tests => 15 );
eval '%@x=0;';
like( $@, qr/^Can't modify hash dereference in repeat \(x\)/, '%@x=0' );
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
};
is( $@, '', 'PL_lex_brackstack' );
+
+{
+ undef $a;
+ undef @b;
+ my $a="a"; is("${a}{", "a{", "scope error #20716");
+ my $a="a"; is("${a}[", "a[", "scope error #20716");
+ my @b=("b"); is("@{b}{", "b{", "scope error #20716");
+}
funny, dest, funny, dest);
}
}
+ if (PL_lex_inwhat == OP_STRINGIFY)
+ PL_expect = XREF;
}
else {
s = bracket; /* let the parser handle it */