Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://744060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found