This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Deparse "string"->[0] correctly
authorFather Chrysostomos <sprout@cpan.org>
Wed, 21 Dec 2011 16:17:01 +0000 (08:17 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 21 Dec 2011 18:37:51 +0000 (10:37 -0800)
commitbe6cf5cf0a864ce5ef586bff8ef592ed0485d201
treeb08367dba1946f80aa99c3c7454b812be874bbdf
parent86c08a2ca2546ef08513c65dabf686423cade2f3
Deparse "string"->[0] correctly

"foo"->[0] and $foo[0] compile down to the same thing.  B::Deparse was
assuming that an rv2gv with a gv kid would have to be $foo[0] syntax,
so it didn’t take things like '!@T#$'->[0] into account.

This commit only fixes aelemfast.  It is related to b89b7257.
dist/B-Deparse/Deparse.pm
dist/B-Deparse/t/deparse.t