in reply to XML::Simple doesn't work
When I tried the following code I received no errors. Perhaps you need to tell us a little more about your problem? Flesh the code below out until you can reproduce the error that you are seeing, or tell us more about your context if the code below generates your error.
my $xs1 = new XML::Simple ();
my $doc = $xs1->XMLin (<DATA>)
For future reference you might want to take a look at this and this.
DWIM is Perl's answer to Gödel