in reply to Deleting old files from directory
Just need to know if this is efficient or if there is a better way of doing this.
It is more efficient to stat only once, ie
stat, -Xgrep {-f $_ and 10 < -M _ }
In Section
Seekers of Perl Wisdom
in reply to Deleting old files from directory
Just need to know if this is efficient or if there is a better way of doing this.
It is more efficient to stat only once, ie
stat, -Xgrep {-f $_ and 10 < -M _ }