Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: CPAN modules for inspecting a Perl distribution?

by pryrt (Abbot)
on Oct 12, 2018 at 20:25 UTC ( [id://1223941]=note: print w/replies, xml ) Need Help??


in reply to CPAN modules for inspecting a Perl distribution?

I think this will do approximately what you want (from a linuxy command line): find . -type f -iname '*.pm' -exec egrep -iH '^\s*sub' {} \;. Not 100% effective, but it would be a pretty good first-level approximation (assuming it's not an XS distro)

Replies are listed 'Best First'.
Re^2: CPAN modules for inspecting a Perl distribution?
by nysus (Parson) on Oct 12, 2018 at 20:44 UTC

    Thanks. But I'm looking for something that would provide some kind of standard report of the distribution's contents. Something that could help point me at a glance to what the major modules were, which modules had the most functions/lines, etc. instead of just peeking inside random files for 10 min.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

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

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

    No recent polls found