Skip Menu |

This queue is for tickets about the Lexical-Persistence CPAN distribution.

Report information
The Basics
Id: 68699
Status: rejected
Priority: 0/
Queue: Lexical-Persistence

People
Owner: RCAPUTO [...] cpan.org
Requestors: rt.cpan [...] sartak.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Grabbing variables is a bit too greedy
Demonstration: use strict; use warnings; use Lexical::Persistence; my $environment = Lexical::Persistence->new; $environment->call(sub { my $foo = shift; { my $abc = 10 }; return $foo; }); print $environment->get_context('_')->{'$abc'}; See also http://stackoverflow.com/questions/6275455/re-pl-variable-not-properly-scoped-inside-block
On Wed Jun 08 05:17:42 2011, SARTAK wrote: Show quoted text
> See also > http://stackoverflow.com/questions/6275455/re-pl-variable-not- > properly-scoped-inside-block
It was noted on that stackoverflow.com thread that PadWalker's the real culprit. I'm marking this "stalled" for now since I really don't know how to go about fixing it. Patches might be welcome!
No change for several months. This remains a documented limitation of this module due to documented limitations of dependent modules. Rejecting this ticket as "can't fix" unless/until someone figures out how to do it.