http://www.perlmonks.org?node_id=1039910


in reply to Re: References for ano subs fixed at compile time?
in thread References for ano subs fixed at compile time?

Demonstration:
sub f(&) { my ($cr) = @_; push @keep_alive, $cr; say $cr; } my $x = '...'; f { '...' } for 1..2; f { $x } for 1..2;
CODE(0x3396f4) \ same for non-capturing CODE(0x3396f4) / CODE(0x24b1cc) \ different for capturing CODE(0x338c04) /