L
Leif Wessman
I've successfully installed XML::Simple and XML::LibXML.
the following code gives me an error:
----
#!/usr/local/bin/perl
....
use XML::Simple;
$XML::Simple:REFERRED_PARSER = 'XML::LibXML';
my $xs1 = XML::Simple->new();
my $doc = $xs1->XMLin($input, forcearray=>1);
----
The error is:
Can't locate object method "xml_decl" via package "XML::Simple" at
/home/leif/perl/lib/perl5/site_perl/5.8.0/i386-linux/XML/LibXML.pm
line 369.
at /home/leif/perl/lib/perl5/site_perl/5.8.0/XML/Simple.pm line 295
What have I done wrong?
Leif
the following code gives me an error:
----
#!/usr/local/bin/perl
....
use XML::Simple;
$XML::Simple:REFERRED_PARSER = 'XML::LibXML';
my $xs1 = XML::Simple->new();
my $doc = $xs1->XMLin($input, forcearray=>1);
----
The error is:
Can't locate object method "xml_decl" via package "XML::Simple" at
/home/leif/perl/lib/perl5/site_perl/5.8.0/i386-linux/XML/LibXML.pm
line 369.
at /home/leif/perl/lib/perl5/site_perl/5.8.0/XML/Simple.pm line 295
What have I done wrong?
Leif