develooper Front page | perl.perl5.porters | Postings from February 2013

Re: Keeping track of used modules (Was: Perl 7 or Perl 2013?)

Thread Previous | Thread Next
David Golden
February 12, 2013 11:16
Re: Keeping track of used modules (Was: Perl 7 or Perl 2013?)
Message ID:
On Tue, Feb 12, 2013 at 3:51 AM, Johan Vromans <> wrote:
> Greg Lindahl <> writes:
>> I would love to have something that I could wire into my build system
>> that would report, every few weeks, all the CPAN modules that I use,
> The best tool for this is perl itself. We would need a very light-weight
> way to store some usage data upon termination. A shared memory file,
> maybe?

If you have Path::Iterator::Rule and a filesystem that supports atime:

$ perl -MPath::Iterator::Rule -wE 'say for

(For modules used in the last week.)

I leave it to the reader to convert that back to a list of modules.

David Golden <>
Take back your inbox! →
Twitter/IRC: @xdg

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About