in reply to Re: find "x" quantity newest files in a dirin thread find "x" quantity newest files in a dir
unlink @sorted[10..$#sorted] if @sorted > 10; [download]