My wording is a little vague b/c it's mainly a follow up to the question I linked (I didn't want to hijack that thread).
Briefly - he opened a file, read the file handle into an array, and processed the array with a
loop. The problem seemed to be that the file was too big to read entirely into an array. So the solution was to go line by line on the file with
I haven't been using perl all that long. I learned to process files with the former method using foreach, and only recently learned about while<HANDLE>. That's why I'm asking when to use which.