What is the easiest way to accomplish this:
I want a script to read in names from a csv file like:
1 Charlie 1 Edward 2 Bob 2 Alfred 3 Barry
(Note that the numeric index is not unique)
And alphabetize by name and print output like:
2 Alfred 3 Barry 2 Bob 1 Charlie 1 Edward
What is the best type of perl structure to store this data in?
In reply to How to sort? by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |