I am trying to parse a large XML file (about 100,000 records) using XML :: Twig, but the perl analysis is not with an error:
perl.exe - Application Error: The instruction at "0x28086920" referenced memory at "0x00000004". The memory could not be "written"...
I read that XML::Twig parses large xml files without any problems, but in my case it fails with the above error.
My .pl file has forloop code that rotates 100,000 times lower:
foreach my $d1(@detailData) { if ($d1->first_child('a')->getElementsByTagName('b')) { $id= $d1->first_child('a')->first_child('x')->field('b'); } .... ..... ...... }
Inside forloop I have about 20 loops as above. Does this cause memory problems?
Can anyone suggest me how to overcome these memory problems?
source share