I would like to dynamically get a list of either function names (as strings) or function references from any arbitrary Perl module available on my system. This would include modules that may or may not have, e.g., a global @EXPORT_OK
array in its namespace. Is such a feat possible? How does one pull it off if so?
Edit: From reading perlmod, I see that %Some::Module::
serves as a symbol table for Some::Module
. Is this the correct place to be looking? If so, how can I whittle the table down to just the function names in Some::Module
?
Symbol::Table
, but its ways are a little advanced for me. – Purpura