in reply to a little problem with sorting my data
sort data > sorted_data
Alternatively, the following would be an efficient Perl solution:
my %grouped; while (...) { my @fields = ...; push @{ $grouped{$fields[0]} }, \@fields; } for my $group (values %grouped) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a little problem with sorting my data
by DStaal (Chaplain) on Jul 27, 2009 at 17:53 UTC | |
by ikegami (Patriarch) on Jul 27, 2009 at 18:25 UTC |