summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-11 21:28:53 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-11 21:29:46 -0800
commitc5e6a3c74b2fe93aae700ce59ef0ad8c70ad1bd6 (patch)
tree83f39ad2ff2fa0d81967f91ab933a3abcddfff9f /hints
parent5a8cd187c670a790aa65012a84cc1b7898b5ff02 (diff)
downloadperl-c5e6a3c74b2fe93aae700ce59ef0ad8c70ad1bd6.tar.gz
Test reference to unavailable lexical variable
This is related to #123172. v5.21.3-644-ge52eb89 inadvertently fixed this old bug, which was prob- ably introduced by the jumbo closure patch: $ perl5.8.9 -le 'sub { my $f; BEGIN { $ref = \$f; $f = 7; $$ref = 8; print $f } }' 8 $ perl5.10 -le 'sub { my $f; BEGIN { $ref = \$f; $f = 7; $$ref = 8; print $f } }' 7 $ perl5.20.1 -le 'sub { my $f; BEGIN { $ref = \$f; $f = 7; $$ref = 8; print $f } }' 7 $ perl5.21.5 -le 'sub { my $f; BEGIN { $ref = \$f; $f = 7; $$ref = 8; print $f } }' 8 \ was returning a *copy* of its referent if the latter closed over an anonymous sub’s stale variable.
Diffstat (limited to 'hints')
0 files changed, 0 insertions, 0 deletions