Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Can a Perl module "inspect" itself and provide details about methods and parameters?

by LanX (Saint)
on Sep 23, 2019 at 00:47 UTC ( [id://11106556]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Can a Perl module "inspect" itself and provide details about methods and parameters?
in thread Can a Perl module "inspect" itself and provide details about methods and parameters?

> CORE functions:

nope these are some plain named symbols in the %main:: STASH since your var $CORE is undef.

Anyway you need to check the {CODE} slot of the glob-values to be sure that they hold a code-ref.

DB<30> sub test { "bla" } DB<31> x map { \&$_ } grep {defined &$_ } values %:: 0 CODE(0x3477178) -> &main::test in (eval 40)[C:/Perl_524/lib/perl5db.pl:737]:2-2 1 CODE(0x3463838) -> &main::dumpvar in C:/Perl_524/lib/dumpvar.pl:474-501 2 CODE(0x3457a78) -> &main::dumpValue in C:/Perl_524/lib/dumpvar.pl:33-40 DB<32>

dumpvar and dumpValue are internal debugger routines

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^3: Can a Perl module "inspect" itself and provide details about methods and parameters?
  • Select or Download Code

Log In?
Username:
Password:

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

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

    No recent polls found