in reply to Re: Converting a coderef back to code
in thread Converting a coderef back to code

Great - many thanks for the solution!

I just went looking for how Data::Dumper does this, and it seems the core solution is:

use B::Deparse; ... my $string = B::Deparse->new->coderef2text($coderef);