[Kc] another possible club project

David Nicol davidnicol at gmail.com
Tue Sep 12 13:41:59 PDT 2006


adding support for outer lexical scopes to B::Deparse

witness:

$ perl -le 'package A;$avar=27; { my $avar; sub aa{print ++$avar}};
package BB; use B::Deparse; $db = B::Deparse->new(qw/-p -P/); print
$db->coderef2text(\&A::aa)'
{
    package A;
    print((++$avar));
}

the PadWalker module might be usable in this case, somehow, perhaps B::Deparse
would rewrite lexicals as calls to some hashes in the B::Deparse::padcache name
space or something like that.

Anyone care to collaborate?


-- 
Although efforts are under way to mitigate the problem, this message
may contain flippancy, hyperbole and/or confusing assertions.  Please
reply directly to fall2006sigfile at davidnicol.com for clarification of any points
appearing unclear, vague, cruel, frustrating, threatening, negative,
dilletantish or otherwise unprofessional before taking action based on
misintepretation or misconstruction of such points.


More information about the kc mailing list