Look at the structure of your data. You want to sort a list of numbers where each list is associated with a unique key
What do you think is the data structure you need to put the data into?
Something like:
%records{$number_before_colon => @list_of_numbers_seperated_by_commas}
So read each file splitting the result into an index and an array and add the array to a hash on the index.
When you need to do data conversion, half the battle is examining the relationship between the data structures.
Now you can access the data in a sorted order:
Wrapping it up
In reply to Re: merge two files
by Utilitarian
in thread merge two files
by karey3341
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |