in reply to Re: find "x" quantity newest files in a dir
in thread find "x" quantity newest files in a dir

unlink accepts a list, so you might say:
unlink @sorted[10..$#sorted] if @sorted > 10;