AFAIK there's no way to do this. Any takers?sub foo { # do groovy things here } my $coderef = \&foo; my $method_name = mythical_coderef_name_fetcher($coderef); print $method_name; # output is 'foo'
In reply to Re^2: Finding the name of the target of a coderef
by moot
in thread Finding the name of the target of a coderef
by Forsaken
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |