patman has asked for the wisdom of the Perl Monks concerning the following question:
I'm sure this is quite easy in perl, I'm just having a little trouble figuring out how to do it. Any help?$text = "data - data2 - data3" how can I split it up so that @field[0] = data, @field[1] = data2, @field[2] = data3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: parsing a line into a list/array
by Anonymous Monk on Jan 11, 2000 at 22:26 UTC | |
|
Re: parsing a line into a list/array
by patman (Initiate) on Jan 10, 2000 at 04:01 UTC | |
|
Re: parsing a line into a list/array
by Anonymous Monk on Jan 12, 2000 at 07:34 UTC |