juo has asked for the wisdom of the Perl Monks concerning the following question:
How can I easily and fast take sections out of a huge asci file and put it in an array. See example below. When a line starts with $FILES and ends with $ then everything between I want to put in an array.
text dsfasdfdsf dfasd $FILES p1agd064, tn00015, tnh0015, pex35v, psm35v, pko35, pki12, layer +id,labl175, labl165, NONAM000, pv046025, pki25, pex46v, psm46v, pko46 +, sm00137,pa0805, ia0805, ma030055, logo164, NONAM001, NONAM002, NONA +M003, pvia10sp,$ text dfada
Edit by dws to add <code> tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: taking sections out of a file and put it in an array
by davorg (Chancellor) on Dec 06, 2002 at 08:55 UTC | |
by Chief of Chaos (Friar) on Dec 06, 2002 at 09:00 UTC | |
by cjf-II (Monk) on Dec 06, 2002 at 09:03 UTC | |
by juo (Curate) on Dec 09, 2002 at 10:46 UTC | |
Re: taking sections out of a file and put it in an array
by Chief of Chaos (Friar) on Dec 06, 2002 at 09:15 UTC | |
by juo (Curate) on Dec 07, 2002 at 21:18 UTC |