Re: File sorting by a specific date

2003-10-21 Thread Kevin Pfeiffer
Hi, In article <[EMAIL PROTECTED]>, Paul Harwood purportedly wrote: > This isn't working for some reason. The $date scalar seems unchanged > throughout. > > Paul Harwood wrote: >> >> I want to search a directory of log files and populate a list of those >> log files ONLY if they match today's

Re: File sorting by a specific date

2003-10-21 Thread Paul Harwood
This isn't working for some reason. The $date scalar seems unchanged throughout. Paul Harwood wrote: > > I want to search a directory of log files and populate a list of those > log files ONLY if they match today's date (localtime). > > $logs = 'c:\logs\W3SVC1'; > opendir LOGS, "$logs" or die "C

Re: File sorting by a specific date

2003-10-17 Thread John W. Krahn
Paul Harwood wrote: > > I want to search a directory of log files and populate a list of those > log files ONLY if they match today's date (localtime). > > $logs = 'c:\logs\W3SVC1'; > opendir LOGS, "$logs" or die "Can't open directory: $!\n"; > my @files = grep /\.TXT$/, readdir LOGS; > > #Righ

File sorting by a specific date

2003-10-17 Thread Paul Harwood
I want to search a directory of log files and populate a list of those log files ONLY if they match today's date (localtime). $logs = 'c:\logs\W3SVC1'; opendir LOGS, "$logs" or die "Can't open directory: $!\n"; my @files = grep /\.TXT$/, readdir LOGS; #Right here, I am wondering if there is a