I want to iterate through a list of inputs in a file and create a list of tuples e.g. <1,5>, <7,10>, <12,20>. There will be one tuple per like. I would then like to order the tuples and then iterate through these once sorted. The second item in a tuple will always be higher than the first, and i want them ordered by the first item in a tuple. I didn't know what data structure I could use to capture pairs of data points that I could then order. I'm a beginner at perl so I don't know how to create a custom data structure.
thanks for your helpIn reply to beginner - ordering tuples by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |