|laziness, impatience, and hubris|
how do I open each line of a text file into seperate arrays?by husani (Initiate)
|on May 01, 2001 at 01:07 UTC||Need Help??|
husani has asked for the
wisdom of the Perl Monks concerning the following question:
I'm a newbie, forgive me if the question is braindead, but I've been trying for hours to no avail...
In my text file, there are 8 items on each line, seperated by pipes, i.e.:
The number of lines in this text file will change on a regular basis.
I need to bring each line into an array ... and each item in the line as an item in the array.
I've spent time reading thru the Q&A on this site. I found out how to bring an ENTIRE text file into an array, but not how to split up the text file into lines, save each as an array with the array's content coming from the pipe-delimited data.
Am I making any sense here? :-) Thank you so much!