This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Band-aid fix for local([@%]$x)
authorStephen McCamant <alias@mcs.com>
Sun, 15 Jun 1997 09:23:45 +0000 (21:23 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Wed, 6 Aug 1997 12:00:00 +0000 (00:00 +1200)
commit706a304b44357647b233945e4e432234718ab515
tree3ba80bbbfc7a21f4e239b1548dc9c3ba91ef06f5
parent21fc060b433a5fd003b9aca5789342207c46ada4
Band-aid fix for local([@%]$x)

This fixes the segfaults by extending the prohibition on `local($$x)'
to array and hash dereferences and removing the code that never
worked. It also adds simple test cases and a `through' to the error
message.

The new explanation in perldiag isn't terribly clear, but the old one
told an untruth.

It should be possible to make local([$@%]$x) work by adding a new
SAVEt type, and I'd like to do so in the future, but that certainly
wouldn't be maintenance patch material.

p5p-msgid: m0wsb7J-000EYPC@alias-2.pr.mcs.net
op.c
pod/perldiag.pod
pp_hot.c
t/op/local.t