perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LUKE" <l...@tc.program.com.tw>
Subject Re: -M in modperl
Date Thu, 12 Jan 2006 17:34:55 GMT
sorry apache2.0.55

----- Original Message ----- 
From: "LUKE" <luke@tc.program.com.tw>
To: <modperl@perl.apache.org>
Sent: Friday, January 13, 2006 1:17 AM
Subject: Re: -M in modperl


> linux  apache 2.55  mod_perl v2.02
> 
> The file will list,but it is not sort by file's mtime in mod_perl!
> 
> 
> ----- Original Message ----- 
> From: "LUKE" <luke@tc.program.com.tw>
> To: <modperl@perl.apache.org>
> Sent: Friday, January 13, 2006 1:06 AM
> Subject: Re: -M in modperl
> 
> 
> > The result is not sort by file's mtime!
> > But if i run the code in cgi or shell. It is sort by file's mtime.
> > 
> > ----- Original Message ----- 
> > From: "LUKE" <luke@tc.program.com.tw>
> > To: <modperl@perl.apache.org>
> > Sent: Friday, January 13, 2006 12: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??
> > >

Mime
View raw message