in reply to Re^2: list files based on age and pattern
in thread list files based on age and pattern

You would need to add a line

use File::Find::Rule;

somewhere at the top of your script. (Assuming this module is installed on your machine.) Also, have a look at the examples in the documentation as linked in CountZero's post.