in reply to Unable to locate XML.SAX

Add a debug statement to print out the value of @INC for both scripts. Perhaps there is a runtime difference between the two scripts.

Are the two scripts using the same perl?

Where is XML/SAX.pm on your system?

Are both scripts using the same parser? Perhaps one of the scripts is setting $XML::Simple::PREFERRED_PARSER