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
February 12, 2013 19:02
Re: Keeping track of used modules (Was: Perl 7 or Perl 2013?)
Message ID:
On 12 February 2013 12:16, David Golden <> wrote:
> 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
> Path::Iterator::Rule->new->skip_dirs(".")->perl_module->accessed("<7")->all(@INC)'
> (For modules used in the last week.)
> I leave it to the reader to convert that back to a list of modules.

What, the solution doesn't fit into this margin? ;-)


perl -Mre=debug -e "/just|another|perl|hacker/"

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