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 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 simple way of populating @files
>> by using a date comparison operation of each file to the local time. I've
>> tried long complicated methods of using 'stat' and Time::Local but I was
>> hoping for a simpler solution.
> 
> Ah, a simple solution.  :-)
[...]

Please quote accurately if you are going to include (what should be) quoted
material.

-K

-- 
Kevin Pfeiffer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to