So I wrote this little application at work using XML::Parser, and then my line manager said "that works great, but the files are huge and I'd be much happier if it took .gz files as input. Now as far as I know, XML::Parser is based on expat, and if I had chosen to write my app using XML::LibXML::Parser instead, which uses the C libxml2 library, it would have taken .gz files as input automagically.
What's the easiest way to get my XML::Parser based app to process .xml.gz files with the minimum of changes?
A Monk aims to give answers to those who have none, and to learn from those who know more.