Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 70348 invoked from network); 12 Jan 2006 18:26:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jan 2006 18:26:05 -0000 Received: (qmail 84815 invoked by uid 500); 12 Jan 2006 18:25:57 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 84794 invoked by uid 500); 12 Jan 2006 18:25:57 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 84783 invoked by uid 99); 12 Jan 2006 18:25:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 10:25:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.39.170.12] (HELO mail.acorg.com) (64.39.170.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 10:25:54 -0800 Received: from [192.168.1.102] (192.168.1.102 [192.168.1.102]) by mail.acorg.com (Postfix) with ESMTP id 665C363A72; Thu, 12 Jan 2006 13:25:36 -0500 (EST) Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.14.17/227]); Thu, 12 Jan 2006 13:30:33 -0500 Message-ID: <002b01c617a6$4660d940$6601a8c0@clarkconnect.lan> From: "Mike OK" To: "LUKE" , References: <43C583A2.4010405@physicianstotalcare.com> <43C587B4.8000802@gallien.net> <002901c61799$701160a0$0c01a8c0@lukeshei> Subject: Re: -M in modperl Date: Thu, 12 Jan 2006 13:30:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi The problem may lie in the kernal itself. I had a similar problem and found that the kernal was to blame. Here is the code I can use in place of the READDIR. Mike my $name; $file = $file . '/'; if ( -d $file ) { if ( $readdir_hack eq "yes" ) { $directory = $file; $directory = $directory . "*"; @files = <${directory}>; chop $directory; for ( $i = 0; $i < @files; $i++ ) { $files[$i] =~ s/$directory//ig; $name = $files[$i]; if ( $name !~ /\b\.+/ ) { } elsif ( $name =~ /stat$/ ) { $name =~ s/\.stat//; } } } ----- Original Message ----- From: "LUKE" To: Sent: January 12, 2006 11:58 AM Subject: -M in modperl > opendir( DIR, "/path" ); > my @dots = grep(/recovery/,sort { -M $a <=> -M $b } readdir(DIR)); > closedir(DIR); > > Can not work in mod_perl?? How to solve it?? > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.371 / Virus Database: 267.14.17/227 - Release Date: 2006-01-11 > >