This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don’t call get-magic twice for sym refs
authorFather Chrysostomos <sprout@cpan.org>
Fri, 22 Jul 2011 06:18:44 +0000 (23:18 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 22 Jul 2011 06:44:17 +0000 (23:44 -0700)
commit7ffa7e7540d4523072b049e2d1285c34faabeeb9
treed071fe530bd6712b5576ac342d3087e4a9fac0ac
parentabcb810c88ac3af57afe0fd06c1c339f104b10f9
Don’t call get-magic twice for sym refs

Dereferencing ops (${}, etc.) were calling get-magic on their operand
twice if it was a symbolic reference, except for &{}.

This commit fixes that, adding tests for all the deref ops, including
&{}, for good measure.
pod/perldelta.pod
pp.c
t/op/tie_fetch_count.t