in reply to Re: Re: How to process only files created on specific month?
in thread How to process only files created on specific month?

I'd quit messing with file names and just go by mtime. Here's a way to make an AoA of file names.

my @files; while (<*.txt>) { push @{$files[ (localtime +(stat)[9])[4] ]}, $_; }
That gives you the November files as @{$files[10]}. You may want to rewrite that to take account of years, too. A hash may be more convenient than an array.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Re: Re: How to process only files created on specific month?
by ysth (Canon) on Jan 23, 2004 at 22:06 UTC