This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #123963] "@<fullwidth digit>"
authorFather Chrysostomos <sprout@cpan.org>
Wed, 11 Mar 2015 05:00:41 +0000 (22:00 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 11 Mar 2015 06:20:57 +0000 (23:20 -0700)
commit9d58dbc453a86c9cbb3a131adcd1559fe0445a08
tree873e2f008cf58aa31ece614c003b49ccf3520472
parent0635704a987a9ec0c9983c4b01b19624fafe668a
[perl #123963] "@<fullwidth digit>"

If an @ sign in a double-quoted string is not followed by a valid
identifier, then it is treated literally.  Or at least that is how it
was intended to work.

The lexer was actually not self-consistent.  It was treating non-ASCII
digits at valid identifiers in determining where the interpolation
started, but was not treating them as valid identifiers when actually
parsing the interpolated code.  So this would result in syntax errors,
and even crashes in some cases.
t/op/lex.t
toke.c