I have some perl code that runs great on my Mac. I moved it to a client linux box and I'm getting an error when trying to use XML::Simple:
#! usr/local/bin/perl5
#use strict;
#use warnings;
use XML::Simple;
# open xml file
my $product = XMLin('xml/ASSET_ALLOCATION_QFR.XML');
This is the least bit of code the shows the error:
"Can't locate object method "new" via package "XML::LibXML::SAX"
... the goes on to list the a diferent path from what I spec'd in the #! line. It looks like "usr/opt/perl5..."
What is different that it works on my Mac but not on Linux, and how do I fix it? Why does it mention the LibXML package when I'm using Simple?
Thanks
/usr/local/bin/perl5 -e'use XML::LibXML::SAX; print "ok\n"'? - ikegami