This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #78194] Make grep/map copy pad tmps
authorFather Chrysostomos <sprout@cpan.org>
Thu, 20 Jun 2013 13:04:59 +0000 (06:04 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Jul 2013 06:47:59 +0000 (23:47 -0700)
commita0ed822e862cc055fe2ab98cf3bb96909dae186d
tree978a9bb838e60d799d29c1178c5f18f0768e645f
parent4891fdfa0afe168e0d8158a0670d71fb47a5a65a
[perl #78194] Make grep/map copy pad tmps

before aliasing them to $_.

And make sure the copies go back on the stack for grep, since modi-
fying $_ in the grep block or expression is supposed to modify the
item returned.
pp_ctl.c
pp_hot.c
t/op/grep.t