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:
Or something similar. Then just dereference the reference and run the sub without arguments.return '&foo' unless shift;
In Section
Seekers of Perl Wisdom