in reply to Bizarro %+ hash slice bug in Perl 5.10 to 5.14.
commit 6f48390ab209d16ee8f795f0a83677c8bd9ac69c Author: Father Chrysostomos <sprout@cpan.org> Date: Wed Jan 4 23:28:54 2012 -0800 [perl #95548] Returned magical temps are not copied return and leavesub, for speed, were not copying temp variables wi +th a refcount of 1, which is fine as long as the fact that it was not c +op- ied is not observable. With magical variables, that *can* be observed, so we have to fore +go the optimisation and copy the variable if it’s magical. This obviously applies only to rvalue subs.
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bizarro %+ hash slice bug in Perl 5.10 to 5.14.
by tobyink (Canon) on Jun 17, 2012 at 18:30 UTC |