The following speeds up the sort the others presented, and is probably faster overall for anything but trivial data:
my @sorted = map substr($_, 6), sort map { local $_ = $_; s/^\S+\s*//; my $ymd = join '', reverse split '/', (split / /)[1]; "$ymd$_" } @data;
In reply to Re: manipulating array
by ikegami
in thread manipulating array
by gavintokyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |