good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: XML file won't parse properlyby tinman (Curate) |
on Apr 12, 2001 at 21:57 UTC ( [id://72119]=note: print w/replies, xml ) | Need Help?? |
Coincidentally, I was talking about this sometime back on the chatterbox.. I got this snippet from tye, I think, who in turn said that jcwren had told him :o) here goes.. in Perl, you can use regular expressions to match and strip characters..
The first two lines strip high end control characters from your file and the third line replaces all whitespace and new line characters.. for more information on what this is, and how its done, I'd suggest you look at this page..
In Section
Seekers of Perl Wisdom
|
|