Don't ask to ask, just ask | |
PerlMonks |
Re: multi-line (string doc) parsingby Trinary (Pilgrim) |
on Jan 27, 2001 at 23:31 UTC ( [id://54773]=note: print w/replies, xml ) | Need Help?? |
Would help to know if (hopefully) the columns are separated
by something other than a bunch of spaces...tab would be
convenient. Otherwise I guess you could just split on more
than two spaces, but I don't know exactly what the data looks
like there.
Anyway, a simple approach: pseudo-codish As usual, untested and mostly not proofread. =) Point out errors as you see fit, of course this is a totally simple method of solving the problem...much cooler solutions abound. Enjoy Trinary
In Section
Seekers of Perl Wisdom
|
|