If you're a Windows programmer, not a Unix/Linux programmer, then you may not already be familiar with the ability to use globs (wildcards) for folder names as well as for file names. As a Perl programmer, folder globbing is a powerful tool you'll want to add to your toolkit.

I do want to learn how to do this! I am on Windows too. I had tried simply using a metacharacter in the file path before I came and asked, but Perl kept telling me it couldn't use ctime on an undefined value. For some reason, no interpolation was taking place and the asterisk itself was being read as part of the path. I'm still not sure why. Thank you for posting this, especially with the examples. Examples are really helpful for someone less experienced. I will study this. Thank you again.

I had tried simply using a metacharacter in the file path before I came and asked, but Perl kept telling me it couldn't use ctime on an undefined value. For some reason, no interpolation was taking place and the asterisk itself was being read as part of the path. I'm still not sure why.

Nor can we be sure why based solely on your description of what's happening. We need more information. Show us what you tried that didn't work.

Thank you for posting this, especially with the examples. Examples are really helpful for someone less experienced.

Then you understand how showing us examples of your problem and the solution you tried that didn't work will help us help you.