in reply to Will regex work here?
My point here is that you should probably look to an XML solution. XML::Parser may be needlessly low level for what you want to do, which is perform an operation on a whole xml file, as opposed to doing tag by tag. This sounds like a job for a DOM type parser to me. check out T.J. Mather's modules Since you want to slurp in the whole file, memory is not an issue.
Also, if you really want to use XML::Parser, you coud read in the file to your string, transform it SAX style on the fly into another variable and do whatever you want to do with it.
Comment?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen
wisely..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Will regex work here?
by Sherlock (Deacon) on Apr 25, 2001 at 00:52 UTC |