This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
use Foo (sub {...});
[perl5.git] / ext / B / B / Deparse.pm
index 2f01389..ef367c2 100644 (file)
@@ -271,6 +271,7 @@ sub next_todo {
 sub begin_is_use {
     my ($self, $cv) = @_;
     my $root = $cv->ROOT;
+    local @$self{qw'curcv curcvlex'} = ($cv);
 #require B::Debug;
 #B::walkoptree($cv->ROOT, "debug");
     my $lineseq = $root->first;