in reply to Re: array of arrays
in thread array of arrays

Hello Marshall:

I like your solution.. it does way with indices as you say. I copied it to my file and works great.

Now how would you do the same thing if the test_file.txt would be like this..??

1|10
1|20
1|30
1|40
1|50
2|15
2|25
2|35
3|1
3|2
3|3
3|4
3|5
3|6
3|7
3|8
3|9
3|10

Replies are listed 'Best First'.
Re^3: array of arrays
by AnomalousMonk (Archbishop) on Jun 12, 2017 at 04:40 UTC

    kevbot and Marshall have already given solutions that handle the  1|10 organization of data. What was wrong with these approaches? If you can identify and clearly explain shortcomings, I'm sure they can be addressed.


    Give a man a fish:  <%-{-{-{-<