This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allow lexical sub redefinition inside eval
authorFather Chrysostomos <sprout@cpan.org>
Tue, 11 Sep 2012 05:29:15 +0000 (22:29 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 16 Sep 2012 05:45:10 +0000 (22:45 -0700)
commita70c2d5688349e997aaf662f41f2dfe6a9b1fe27
treee6fb394290cc691fba4a93645dee89cec40916bc
parent81df9f6f95225e40ead5e853dadb0bb98be2531b
Allow lexical sub redefinition inside eval

For non-clonable state subs, this already happened to work.

For any clonable subs, we need to clone the sub as soon as it
is defined.

For redefined state subs, we need to apply the new sub to all recur-
sion levels, as state subs are shared.
op.c
t/cmd/lexsub.t