altho there are faster ways, like storing each second field in a hash as key :)@a=qw(foo:baz foo:bar); print sort { (split(/:/,$a))[1] cmp (split(/:/,$b))[1] } @a;
In reply to Re: Sorting
by Beatnik
in thread Sorting colon-delimited records
by venki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |