This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't localise array / hash slice ref assignment
RT #133538
The experimental ref assignment aliasing feature, when applied to
array or hash slices, was treating the slice as if it was always localized;
e.g.
\(@a[3,5,7]) = \(....);
was being interpreted as
local \(@a[3,5,7]) = \(....);
The fix is simple: check for the OPpLVAL_INTRO flag actually being set
on the op, rather than unconditionally localising the array/hash
elements.