in reply to Re: How to list files in dir with respect to time ?
in thread How to list files in dir with respect to time ?
You could use the Orcish Maneuver to make your code go faster...
# Original code for ( sort { -M $a <=> -M $b } glob ... ) # Orcish Maneuver my %t; for ( sort { ($t{$a} ||= -M $a) <=> ($t{$b} ||= -M $b) } glob ... )
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to list files in dir with respect to time ?
by anonymized user 468275 (Curate) on Aug 17, 2005 at 08:36 UTC | |
by salva (Canon) on Aug 17, 2005 at 08:44 UTC |
In Section
Seekers of Perl Wisdom