Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: What package is foo() from?

by Ovid (Cardinal)
on Jun 26, 2007 at 13:01 UTC ( #623389=note: print w/ replies, xml ) Need Help??


in reply to What package is foo() from?

Frankly, I get tired of always trying to figure out stuff about subroutines (what's their name, if anonymous? What's their code? What package are they from? etc.). So I bundled all of that up in Sub::Information:

use Sub::Information; print inspect(\&coderef)->package;

Cheers,
Ovid

New address of my CGI Course.


Comment on Re: What package is foo() from?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-07-02 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls