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 ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found