README
1Dir::Purge implements functions to reduce the number of files in a
2directory according to a strategy. It currently provides one strategy:
3removal of files by age.
4
5EXAMPLES
6========
7
8From the command-line:
9
10 perl -MDir::Purge -e 'purgedir (5, @ARGV)' /spare/backups
11
12From your Perl program:
13
14 use Dir::Purge;
15 purgedir ({keep => 5, strategy => "by_age", verbose => 1}, "/spare/backups");
16
17 use Dir::Purge qw(purgedir_by_age);
18 purgedir_by_age (5, "/spare/backups");
19
20AVAILIBILITY
21============
22
23The Comprehensive Perl Archive Network (CPAN), see
24"http://www.perl.com/CPAN/authors/Johan_Vromans".
25
26The kit is named Dir-Purge-x.yy.tar.gz, where x.yy is the version
27number.
28
29COPYRIGHT AND DISCLAIMER
30========================
31
32Module Dir::Purge is Copyright 2000,2005 by Squirrel Consultancy.
33This program is free software; you can redistribute it and/or
34modify it under the terms of the Perl Artistic License or the
35GNU General Public License as published by the Free Software
36Foundation; either version 2 of the License, or (at your option) any
37later version.
38
39-------------------------------------------------------------------
40Johan Vromans jvromans@squirrel.nl
41Squirrel Consultancy Haarlem, the Netherlands
42http://www.squirrel.nl http://www.squirrel.nl/people/jvromans
43------------------ "Arms are made for hugging" --------------------
44