in reply to arrays of arrays
I don't fully understand what you need but you can try to push data like so:
#The $. is the current line number in file push @{ $data{$.}{nums} }, $1; and push @{ $data{$.}{words} }, $1;
After that you will have hash with line number and numbers and words for that line
|
|---|