Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
Domain Nodelet?
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 perusing the Monastery: (6)
As of 2021-08-03 10:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (37 votes). Check out past polls.

    Notices?