Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Is there a way to access the name under which a subroutine was first defined?

by Thilosophy (Curate)
on Feb 16, 2009 at 11:34 UTC ( #744042=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # code for this inspired by Devel::Symdump
    sub _find_name_of_sub_in_pkg{
    ...
    
        die "failed to find name for StartRunmode code ref $ref in package
    + $pkg\n";
    }
    
  2. or download this
    use strict;
    
    ...
    sub foo : Tiger {
        print "pling.\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-10-29 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (266 votes). Check out past polls.

    Notices?