As ref() gives 'CODE', and "$ref" gives 'CODExxxxx', how to achieve such magic?my $ref = \&foo::bar::func; my $str = some_magic($ref); # got "foo::bar::func"
In reply to How to know function name and package from its ref? by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |