Did you mean programmer efficiency?
File::Find::Rule has a nicer interface and is easier to use (IMHO).
So your query could look something like this :-
use File::Find::Rule; my $uid = getpwnam('web'); my @files = File::Find::Rule->file->name('*.iso')->uid($uid)->in('/'); unlink $_ for @files;
There are methods for the stat tests, ctime,size etc, so you can add more stages as you need them. I'm not sure what 'find -cmin' actually does so I didn't attempt that bit.
Re: File::Find seems grossly inefficient for performing simple file tasks
Replies are listed 'Best First'.
|Re^2: File::Find seems grossly inefficient for performing simple file tasks|
by taint (Chaplain) on Apr 26, 2013 at 14:09 UTC
by RichardK (Vicar) on Apr 26, 2013 at 15:19 UTC
by taint (Chaplain) on Apr 26, 2013 at 20:47 UTC
by RichardK (Vicar) on Apr 28, 2013 at 13:21 UTC
by Anonymous Monk on May 29, 2013 at 15:42 UTC