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-
In reply to Re: 'Out of memory!' Error with XML::Simple
by gjb
in thread 'Out of memory!' Error with XML::Simple
by silent11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |