I am wondering if it's possible to 'stringify' a coderef
Yes, this is possible:
my $stringify = B::Deparse->new->coderef2text($coderef);
See Is it useful to edit code at execution time? for an example of what you are trying to accomplish (I'm happy to see that you will give a "yes" to that question). Also, the module Sub::Compose uses this technique.
Hope this helps,citromatik
In reply to Re: Converting a coderef back to code
by citromatik
in thread Converting a coderef back to code
by oxone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |