in reply to 'Out of memory!' Error with XML::Simple
I don't know why such an amount of memory is used (I can only assume XML::Simple gets very confused), but I do know how to deal with it.
Using Data::Dumper I noticed that $books is not a hashref, but a listref. Replacing the foreach with:
solves the problem.foreach my $book (@$books) { print "$book->{'asin'} \n"; }
Hope this helps, -gjb-
|
|---|