in reply to XML::Parser sigh...

Use parse instead of parsefile, and pass it an IO handle. Filter the data before it gets to the parser. There are several ways to do that. You could write a separate program and pipe the output to this one (and pass the parser STDIN), fork a child process which reads/filters/outputs the file and the parent process reads from it (easy with pipe), or create a tied filehandle which filters input (which may work if XML::Parser will accept a tied filehandle).

Replies are listed 'Best First'.
Re^2: XML::Parser sigh...
by rogue90 (Novice) on Jul 27, 2005 at 23:33 UTC
    brilliant. Thanks. I have been looking at this for so long I didn't even notice parse in the docs.