Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by ELISHEVA (Prior)
on Feb 16, 2009 at 12:31 UTC ( #744060=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      $sName = 'undef' unless defined($sName);
      print STDERR "Name via Thilosophy method: <$sName>\n";
    }
    
  2. or download this
    Dumping CODE(0x81a8e60) in MODIFY_CODE_ATTRIBUTES:
    Warning: could not find name for CODE(0x81a8e60) at Monks/Snippet.pm l
    +ine 23.
    ...
    
    Dumping CODE(0x81a8e60) in BEGIN block after compilation.
    Name via Thilosophy method: <bar>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-10-24 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (246 votes). Check out past polls.

    Notices?