Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: XML::Simple throws decode error in encode.pm

by almut (Canon)
on Aug 04, 2010 at 20:59 UTC ( [id://852969] : note . print w/replies, xml ) Need Help??


in reply to Re^2: XML::Simple throws decode error in encode.pm
in thread XML::Simple throws decode error in encode.pm

As already hinted at, XMLin() doesn't like already decoded input; it wants bytes/octets.  IOW, simply open the file as

open my $etax, '<', $input or ... # ^ no :utf8

Replies are listed 'Best First'.
Re^4: XML::Simple throws decode error in encode.pm
by Anonymous Monk on Aug 04, 2010 at 21:14 UTC

    Works like a charm! Thanks!

Re^4: XML::Simple throws decode error in encode.pm
by Anonymous Monk on Aug 05, 2010 at 17:11 UTC

    Works great now! Thanks!