in reply to Sort on Part of a Line
use Sort::Key::Multi qw(s3_keysort); # s3 => three keys of type string my @lines = <>; my @sorted = s3_keysort { (split /,/)[3,4,5] } @lines;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sort on Part of a Line
by Saved (Beadle) on Jan 04, 2011 at 16:21 UTC |