Thanks simonm!
I tried this out, but now when I run my code on a browser, once it hits a page that uses the XML::Parser, i now get a 502 Gateway error - Not CGI compliant. It works on all the other systems, just not this one. Is there something I might be missing?