I assume that by "create" you mean the mtime shown in your ls output. You can use stat and localtime to get what you want.
while (<*Dec2003*.txt>) { # this is a glob if ( (localtime( (stat)[9]))[4] == 11 ) { # open $_ and process it } }
Update: Not_a_Number++ is correct. Repaired.
After Compline,
Zaxo
In reply to Re: How to process only files created on specific month?
by Zaxo
in thread How to process only files created on specific month?
by danield
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |