Superman has asked for the wisdom of the Perl Monks concerning the following question:
how can i write this data do that each time i get to a new header line i push the lines following it into a separate array so that array1 contains....ABC header line ABC line 1 ABC line 2 ABC line 3 ABC header line ABC line 1 ABC line 2 ABC line 3
and array2 contains....ABC header line ABC line 1 ABC line 2 ABC line 3
thanks 4 the wisdom!ABC header line ABC line 1 ABC line 2 ABC line 3
2002-05-18 Edit by Corion : Added CODE tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help...separating strings into arrays!
by Superman (Acolyte) on May 17, 2002 at 13:33 UTC | |
|
Re: help...separating strings into arrays!
by munchie (Monk) on May 17, 2002 at 13:30 UTC | |
by cchampion (Curate) on May 18, 2002 at 10:18 UTC | |
|
Re: help...separating strings into arrays!
by munchie (Monk) on May 17, 2002 at 13:50 UTC |