Perl programming question

Sariel

Veteran XX
Reading a set of values into an array for sorting. I really want to be able to sort on 2 different fields for each value and only keep the one (when there are duplicated first fields) with the highest revision # (field 2).

Example:

10734-10
10734-11
10883-01

Using "-" as the delimeter (field 1"-"field 2)

Does that make sense?

I tried using Unix sort via "system", but it's rather crappy and doesn't quite do what I am asking. Any thoughts?

Thanks!
 
Back
Top