Perl Monk, Perl Meditation | |
PerlMonks |
Re: How do I check all the variables, subroutines etc in a Perl Module?by BillKSmith (Monsignor) |
on Aug 31, 2020 at 00:09 UTC ( [id://11121213]=note: print w/replies, xml ) | Need Help?? |
Lexical variables are not accessible (and may not even exist) outside their scope. Package variables are stored in a symbol table. The symbol table for module (package) is a hash. The keys are the names you seek. The values are references to typeglobs. It is necessary to dereference the typeglob to find out what the name is used for. The details are beyond my experience. The book "Programming Perl" has a lengthy section name "Symbol Tables". It appears to be what you need.
Bill
In Section
Seekers of Perl Wisdom
|
|