Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2020-11-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?