Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by swl (Parson)
on Aug 31, 2020 at 03:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found