in reply to Re: Re: Is too little too much? Coding under the microscope...
in thread Is too little too much? Coding under the microscope...
or if you have large amount of files, you'd better cache the result of -M:$newest = (sort { -M $a <=> -M $b } <*.log>)[0];
$newest= (sort { ($m{$a} ||= -M $a) <=> ($m{$b} ||= -M $b) } <*.log>)[ +0];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Is too little too much? Coding under the microscope...
by Abigail (Deacon) on Jun 28, 2001 at 20:57 UTC |