llancet has asked for the wisdom of the Perl Monks concerning the following question:
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"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to know function name and package from its ref?
by chromatic (Archbishop) on Dec 17, 2009 at 07:23 UTC | |
|
Re: How to know function name and package from its ref?
by Anonymous Monk on Dec 17, 2009 at 07:21 UTC | |
|
Re: How to know function name and package from its ref?
by afoken (Chancellor) on Dec 18, 2009 at 00:42 UTC | |
by llancet (Friar) on Dec 18, 2009 at 09:55 UTC | |
by afoken (Chancellor) on Dec 18, 2009 at 15:43 UTC | |
by BrowserUk (Patriarch) on Dec 18, 2009 at 16:35 UTC | |
by llancet (Friar) on Dec 19, 2009 at 08:12 UTC | |
by llancet (Friar) on Dec 19, 2009 at 09:12 UTC |