in reply to Re: Re: Re: Is too little too much? Coding under the microscope...
in thread Is too little too much? Coding under the microscope...
And if you want to sort them, faster than an Orcish Maneuvre or a Schwartian Transform is the Guttman-Rosler Transform:my $extreme = [365_000, undef]; foreach (<*.log>) { $extreme = [-M, $_] if $extreme -> [0] > -M } my $newest = $extreme -> [1];
@files = map {substr $_ => 18} sort map {sprintf "%017.10f %s" => -M, $_} <*.log>;
-- Abigail
|
---|