in reply to Re^2: Temporary file management in Perl -- is it possible?
in thread Temporary file management in Perl -- is it possible?
You can also invoke all necessary commands in Perlsystem(q{find . -type f -name '*.tbz2' -maxdepth 1 -cmin '+24' | xargs + rm})
See -X.opendir my $dh, '.'; for (readdir $dh) { unlink if -l and /\.tbz2$/ and 24 * 60 * -M > 10; }
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Temporary file management in Perl -- is it possible?
by taint (Chaplain) on Apr 25, 2013 at 17:29 UTC |