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 [EMAIL PROTECTED] 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.
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc