in reply to adding the missing sequence numbers
You never say what values you want in columns 7 and 8 of your lines. Always 2,2 ?
The example input you give at the end has only 7 columns, not 8
Also you seem to have duplicate keys in your hash, i.e. the key '1' happens to be 3 times in your input. If you store that in a hash, only the last line with a specific key will survive. So either you have to append additional data to the arrays in your hash or use a ArrayofArrays structure to store the data. Or, if the data is already sorted, don't store anything (Ikegamis solution works with that assumption)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding the missing sequence numbers
by ikegami (Patriarch) on Jan 19, 2011 at 18:33 UTC | |
by jethro (Monsignor) on Jan 19, 2011 at 19:16 UTC | |
by remiah (Hermit) on Jan 20, 2011 at 04:19 UTC |