Tomas Doran > Bastad David wrote: > | Can't locate object method "new" via package "XML::SAX::PurePerl" at > XML/SAX/ParserFactory.pm at line43 > > What output does scandeps.pl give on your script? I bet it > doesn't mention XML::SAX::PurePerl
That was my first reaction, too. You can check whether XML::SAX::PurePerl has been packed into the executable with $ unzip -l x.exe and look for XML/SAX/PurePerl.pm. If it's really missing, try Tomas' advice (though this indicates a bug in Module::ScanDeps - it has special code to deal with the way XML::SAX::ParserFactory locates SAX parsers at runtime). However, I tried the script on my system (Linux, looks like the original poster was running Windows) and got almost the same result (it complaint about a different SAX parser - I have several installed). But the unzip check above showed that the parser's modules had been correctly determined and packed into the executable. Turns out that both the core perl distribution and Compress::Zlib had newer versions installed on my system than the ones PAR, esp. pp, had been built with. Rebuilding PAR from CPAN resolved the problem for me. Cheers, Roderich
