in reply to Re: removing files with perl based on age and name
in thread removing files with perl based on age and name
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |