in reply to XML::Simple throws decode error in encode.pm
#!/usr/bin/perl use strict; use Data::Dumper; use XML::Simple qw(:strict); my $xs = XML::Simple->new(); my $blah = $xs->XMLin('/root/Desktop/txt.xml', ForceArray => 1, KeyAttr => 1); binmode STDOUT, ':utf8'; print Dumper($blah);
|
|---|