good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How do I find and delete files based on age?by Moron (Curate) |
on Feb 26, 2007 at 15:14 UTC ( [id://602142]=note: print w/replies, xml ) | Need Help?? |
untested Perl one liner: Note: this is a deliberately simplistic example. To optimise it to avoid shelling out (using either File::Find or putting the glob in a recursive subroutine) would require more Perl experience than OP suggests. Update: Newbies will particularly benefit from Learning Perl, Third Edition - Making Easy Things Easy and Hard Things Possible By Randal L. Schwartz & Tom Phoenix. -M Free your mind
In Section
Seekers of Perl Wisdom
|
|