in reply to
Finding the name of the target of a coderef
This may seem simplistic, but if the sub normally takes arguments, you could just:
return '&foo' unless shift;
[download]
Or something similar. Then just dereference the reference and run the sub without arguments.
Comment on
Re: Finding the name of the target of a coderef
Download
Code
In Section
Seekers of Perl Wisdom