This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Handle require() on implicit $_ properly w/r global overrides
authorVincent Pit <vince@profvince.com>
Sun, 20 Nov 2011 10:56:11 +0000 (11:56 +0100)
committerVincent Pit <vince@profvince.com>
Sun, 20 Nov 2011 10:56:41 +0000 (11:56 +0100)
commit7c864bb3ffceec4b5c696507d5fc0d4e9e2f13b3
treed5efd902c10f6968c168595552f785075de62097
parentcbd87d8d73269d0f60e1d5c404627169d56ed661
Handle require() on implicit $_ properly w/r global overrides

Those require() calls are compiled as BASEOPs, so it is invalid to look for
their op_first member when they are translated to a call to the global
override subroutine. The new entersub call should get $_ in its argument
list instead.

This fixes [perl #78260].
op.c
pod/perldelta.pod
t/op/override.t