[Pdx-pm] Read only?
chromatic
chromatic at wgz.org
Sun Sep 17 16:36:02 PDT 2006
On Sunday 17 September 2006 15:11, Kris Bosland wrote:
> Yes, works on '-e' and on the debug command line, but not in my
> wacky eval context. I just had a thought: deparse! How do I compile and
> then deparse an eval string?
Turn it into an anonymous subroutine, then use B::Deparse:
my $deparse = B::Deparse->new();
my $source = $deparse->coderef2text( $sub_ref );
-- c
More information about the Pdx-pm-list
mailing list