in reply to Expanding dates

Update:Test your code before you press that pesky Submit button ...

You want to do some globbing on the filenames. This could be done with the perlfunc:glob() builtin, but you also want some ordering.

Here is one approach :

Take a look at File::Find to see how you can get a list of all files in a directory, other interesting reading is the readdir() function.