|
|
| There's more than one way to do things | |
| PerlMonks |
Re: file reading issuesby bofh_of_oz (Hermit) |
| on Aug 03, 2005 at 19:13 UTC ( #480604=note: print w/ replies, xml ) | Need Help?? |
|
A regex will parse the file just fine. Just grab the whole file into a variable, then do this:
I tried to do the same while reading the file line-by-line... The code was so ugly that I simply recommend to read in the whole file at once and do a multiline regexp above... HTH
--------------------------------
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||