vivapl has asked for the wisdom of the Perl Monks concerning the following question:
I'm searching for some wisdom in regards to string parsing.
the above are examples of a file I'm trying to parse, my question is in regards to number of spaces between the first and second column. I tried to use split but then the location of the second column changes when white space count differs. Any idea on how to approach this?1 1234 gg123456789 000-12345-1234-111 12 1234 gg123456789 000-12345-1234-111 123 1234 gg123456789 000-12345-1234-111
Thanks in advance
update (broquaint): tidied up formatting
20031125 Edit by BazB: Changed title from 'Seeking best approach'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking best approach to column parsing
by hardburn (Abbot) on Nov 25, 2003 at 17:42 UTC | |
by davido (Cardinal) on Nov 25, 2003 at 18:27 UTC | |
|
Re: Seeking best approach to column parsing
by TStanley (Canon) on Nov 25, 2003 at 17:32 UTC | |
|
Re: Seeking best approach to column parsing
by b10m (Vicar) on Nov 25, 2003 at 17:31 UTC | |
|
Re: Seeking best approach to column parsing
by Art_XIV (Hermit) on Nov 25, 2003 at 18:21 UTC | |
|
Re: Seeking best approach to column parsing
by Roger (Parson) on Nov 26, 2003 at 01:14 UTC | |
|
Re: Seeking best approach to column parsing
by vivapl (Acolyte) on Nov 25, 2003 at 17:36 UTC |