Try using
coderef2text() from the
B::Deparse module - the earlier suggestion to use the
Deparse option from
Data::Dumper rely on both
- Your installed version of Data::Dumper supporting the given option (which you may not have the power or opportunity to change)
- The code ref. being deparseable by B::Deparse - which Data::Dumper calls
So just use B::Deparse anyway :-D
Update:
Looks like my post and oxones reply crossed in the post
A user level that continues to overstate my experience :-))