This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix for RT#1804: Anonymous glob breaks when assigned through
authorFather Chrysostomos <sprout@cpan.org>
Sat, 10 Jul 2010 19:09:51 +0000 (15:09 -0400)
committerRafael Garcia-Suarez <rgs@consttype.org>
Mon, 26 Jul 2010 08:16:55 +0000 (10:16 +0200)
commit0fe688f528b0e1b5bef6fb30d5e45316430e8a41
treea38f5eb47badce81268c3c57df36562d8ac90c91
parent1eb3f3ad74c5c8cb35d027485b9938eb0a64db40
Fix for RT#1804: Anonymous glob breaks when assigned through

The problem here is that globs are scalars and the = operator can only
distinguish between scalar and glob assignments by the flags on the
glob. It only sees the return value of *{}, not the *{} itself. We can
fix this by having the pp_sassign look for a rv2gv (*{}) on its LHS,
to decide what type of assignment to do.
pp_hot.c
t/op/gv.t