Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Perl modules actually in use

by busunsl (Vicar)
on May 02, 2002 at 09:48 UTC ( [id://163489]=note: print w/replies, xml ) Need Help??


in reply to Perl modules actually in use

If this is on Unix you can check the access time of the modules.

  • Use the Unix command find to find files accessed recently (-anewer):
    touch -t 200205010000 /tmp/x find /usr/lib/perl5/lib -anewer /tmp/x rm /tmp/x
  • Use Find::File and Perl's stat function:
    #!/usr/bin/perl use strict; use warnings; use File::Find; find ( sub { print $Find::File::name, "\n" if (stat($Find::File::name))[8] > time - 60*60*24*30 } )

update: added find example
update2: added File::Find example

Log In?
Username:
Password:

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

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

    No recent polls found