in reply to Re^2: Parsing .txt into arrays
in thread Parsing .txt into arrays

Fshah:

The $. variable contains the line number last read from the last filehandle access. So you can simply store the value each time you start a new array and add the starting line number to your table of information. You can read more about the $. variable at perlvar.

...roboticus

When your only tool is a hammer, all problems look like your thumb.