in reply to How to process only files created on specific month?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to process only files created on specific month?
by Not_a_Number (Prior) on Jan 23, 2004 at 21:40 UTC | |
|
Re: Re: How to process only files created on specific month?
by danield (Novice) on Jan 23, 2004 at 21:05 UTC | |
by Zaxo (Archbishop) on Jan 23, 2004 at 21:54 UTC | |
by ysth (Canon) on Jan 23, 2004 at 22:06 UTC |