I have two text files that contain columnar data of the variety position-value, sorted by position.
position
value
Here is an example of the
For looping through files you can use the core Tie::File module. It represents a regular text file as an array.