Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Removing unused Perl modules

by no longer just digit (Beadle)
on Apr 22, 2021 at 06:19 UTC ( [id://11131575]=note: print w/replies, xml ) Need Help??


in reply to Re: Removing unused Perl modules
in thread Removing unused Perl modules

Yes, that's one of the big problems with Perl modules. I have a fairly crude but working script which does this for C:

Remove unnecessary #include headers from C files

I saw this post yesterday:

Include-what-you-use: A tool to analyze includes in C and C++ source files (include-what-you-use.org)

But nothing at all for Perl. I guess what I'll probably go with, if nobody has a better idea, is something like that script for C files, like comment out the "use" line and see if it passes its tests.

Replies are listed 'Best First'.
Re^3: Removing unused Perl modules
by perlfan (Vicar) on Apr 22, 2021 at 14:08 UTC
    That sounds very reasonable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found