luckypower has asked for the wisdom of the Perl Monks concerning the following question:
%hash{$path}= { Date => $date, Size => $size };
so which one is best optimizaion(both in memory & speed)??my @sort = sort {$hash{$a}->{"Size"} cmp $hash{$b}->{"Size"}} keys %ha +sh; for each $file (@path) { if ($hash{$file}->{"Size"} > $sizelimit) { delete $file } else { break; } }
|
|---|