This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
given(): remove support for lexical $_
authorDavid Mitchell <davem@iabyn.com>
Fri, 2 Oct 2015 16:19:22 +0000 (17:19 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 2 Oct 2015 16:23:23 +0000 (17:23 +0100)
commit5d051ee03641d21c898bf366fb1caee7baf7e646
tree26fb55d97521454facd4b45552201c65c052d091
parent9ff1a054e52a031d80d4625192ca222e15bb9c69
given(): remove support for lexical $_

There is dead code that used to allow

    my $_;
    ...
    given ($foo) {
        # lexical $_ aliased to $foo here
    }

Now that lexical $_ has been removed, remove the code.  I've left the
signatures of the newFOO() functions unchanged; they just expect a target
of 0 to always be passed now.
op.c
perly.act
perly.h
perly.tab
perly.y
pp_ctl.c