Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
or something.... my problem is that the input file has lots of whitespace in it and can't be split.my @file = split (/\n/, $line);
As you can see the irregular spacing etc is making it hard to split. Can anyone suggest a way of splitting this data into elements of an array that might work??? thanks.the file looks like this.. 1 2 3 1 1 6 4 8 5 6 9 0 8 89 5 0 0 8 7 8 4 6 6 3 79 0 588 7 9 4 3 9 2 9 9 23 8 0 2 8 98 0 9 7 8 0 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: weird files
by BrowserUk (Patriarch) on Nov 29, 2002 at 09:22 UTC | |
by Anonymous Monk on Nov 29, 2002 at 09:39 UTC | |
|
Re: weird files
by jmcnamara (Monsignor) on Nov 29, 2002 at 09:24 UTC | |
|
Re: weird files
by danger (Priest) on Nov 29, 2002 at 09:17 UTC | |
|
Re: weird files
by gjb (Vicar) on Nov 29, 2002 at 09:17 UTC | |
|
Re: weird files
by Chief of Chaos (Friar) on Nov 29, 2002 at 09:20 UTC |