in reply to one user prompt instead of many

Remove the prompting from inside the loop. Then do this: Each time a file is found that has a "last modified" time of greater than three days, push $file into @found. At the end of the loop, if @found contains entries, then prompt the user if he wants them deleted. If the response is yes, then "unlink @found;".


Dave