in reply to Re: splitting arrays
in thread splitting arrays
I am reading in a file of data, each line has 50 bits of tab-delimited data. I normally use split but for some reason, some items have lots of newline characters seperating the data and some don't. I am doing this within a while loop but it is considering every line as a separate record, not every item.
while (<ARRAY_DATA>) { $line = $_; chomp ($line); @array = (); @array = split (/\s+/, $line); # other stuff here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: splitting arrays
by RazorbladeBidet (Friar) on Apr 15, 2005 at 13:27 UTC | |
by Anonymous Monk on Apr 15, 2005 at 13:34 UTC | |
by RazorbladeBidet (Friar) on Apr 15, 2005 at 14:03 UTC | |
|
Re^3: splitting arrays
by Roy Johnson (Monsignor) on Apr 15, 2005 at 14:30 UTC |