Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How do I check all the variables, subroutines etc in a Perl Module?

by swl (Priest)
on Aug 31, 2020 at 03:26 UTC ( #11121217=note: print w/replies, xml ) Need Help??


in reply to How do I check all the variables, subroutines etc in a Perl Module?

Devel::SymDump has a decent interface for most of what you need.

Lexical variables are harder, as noted by BillKSmith in 11121213. You can get some details using PadWalker. However, that requires your code to be called by the sub, which means you are usually the person writing it, and should therefore know what the variables are.

That said, lexical variables are not provided by a module so are probably out of scope for the question anyway.

  • Comment on Re: How do I check all the variables, subroutines etc in a Perl Module?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-10-20 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (208 votes). Check out past polls.

    Notices?