Re: Problem with READDIR

2003-12-30 Thread Ramprasad A Padmanabhan
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

Re: Problem with READDIR

2003-12-30 Thread Owen
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

RE: Problem with READDIR

2003-12-31 Thread Perl
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

Re: Problem with READDIR

2003-12-31 Thread Owen
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