Perl wrote:
I have a problem with the following block of code. It works fine when
there isn't a *.log file in the same directory as the script but when
there is, it always returns that log as the newest file and ignores the
list of files it retrieves from the remote server.
I debugged this and f
On Tue, 30 Dec 2003 19:07:26 -0800
"Perl" <[EMAIL PROTECTED]> wrote:
> $iisdir = '\\\server01\c$\winnt\system32\logfiles\W3SVC1';
> opendir LOGS, "$iisdir" or die "Directory error for IIS LOGS: $!\n";
>
> my @files = grep /\.log$/, readdir LOGS;
> @files = sort { -M $a <=> -M $b } @files;
> $act
Conversation: Problem with READDIR
Subject: Re: Problem with READDIR
On Tue, 30 Dec 2003 19:07:26 -0800
"Perl" <[EMAIL PROTECTED]> wrote:
> $iisdir = '\\\server01\c$\winnt\system32\logfiles\W3SVC1';
> opendir LOGS, "$iisdir" or die "Directory error for
On Tue, 30 Dec 2003 19:07:26 -0800
"Perl" <[EMAIL PROTECTED]> wrote:
> I have a problem with the following block of code. It works fine when
> there isn't a *.log file in the same directory as the script but when
> there is, it always returns that log as the newest file and ignores the
> list of