in reply to sort timestamps with associated names.
Your data seems to use fixed length records, so you can just use substr to extract the timestamp fragment:
my @sorted = sort { substr($a, 10) cmp substr($b, 10) } @data;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: sort timestamps with associated names.
by Sparky (Initiate) on Jul 30, 2013 at 03:15 UTC |
In Section
Seekers of Perl Wisdom