given(): remove support for lexical $_

Programming / Compilers / PERL - David Mitchell [iabyn.com] - 2 October 2015 11:23 UTC

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.

5d051ee given(): remove support for lexical $_
op.c | 11 +-
perly.act | 847 ++++++++++++++++++++++++++++++-------------------------------
perly.h | 64 +++--
perly.tab | 99 ++++----
perly.y | 8 +-
pp_ctl.c | 12 +-
6 files changed, 524 insertions(+), 517 deletions(-)

Upstream: perl5.git.perl.org


  • Share