Why shell out to stat instead of using the builtin? Why the -r and -f on the rm when you are only deleting one file at a time? Why use backticks for the rm? Why shell out to rm at all when we have unlink?
As it stands your script looks a bit too dangerous to consider running, sorry.
In reply to Re^2: removing files with perl based on age and name
by hippo
in thread removing files with perl based on age and name
by Jocqui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |