texuser74 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Perl Experts,
I have a list of names followed by their page numbers
e.g.Chee S. L. 8 Cheng T. H. 5 Cheng T. H. 2 Chetan M. 4
I want to remove the duplicate occurance of the names and arrange the numbers in the following way
required ouput:
Chee S. L. 8 Cheng T. H. 2,5 Chetan M. 4
Please advice me how to achieve this.
Thanks in advance
janitored by ybiC: Renamed from "sorting", because one-word nodetitles hinder site search
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting a list and removing duplicate elements
by hardburn (Abbot) on Aug 17, 2004 at 16:34 UTC | |
|
Re: Sorting a list and removing duplicate elements
by davorg (Chancellor) on Aug 17, 2004 at 16:40 UTC | |
by Anonymous Monk on Aug 17, 2004 at 16:55 UTC | |
by texuser74 (Monk) on Aug 19, 2004 at 10:29 UTC | |
by davorg (Chancellor) on Aug 19, 2004 at 10:41 UTC | |
|
Re: Sorting a list and removing duplicate elements
by pbeckingham (Parson) on Aug 17, 2004 at 16:43 UTC |