Hi Monk, Sorry for the confusion, perl program was converted as .exe and it show error while running the .exe with huge inputs. But if I run in perl program, its working fine.
I have placed the sample code below. I think problem is more than one index file and index file sample also placed below.
Sample Inputs: 0521343434ind.xml
<indexEntry>
<primaryIE id="ind-pie-i00-184">bilingual education <pg>12, 81–4
+</pg></primaryIE>
<secondaryIE id="ind-pie-i00-185">transitional <pg>55</pg></secondaryI
+E>
</indexEntry>
<indexEntry>
<primaryIE id="ind-pie-i00-186">Bilingual Education Act <pg>30</pg></p
+rimaryIE>
</indexEntry>
Coding as Follows:
foreach (@ind)
{
open (IND,"$fold\/body\/$_") or die ("$_ isnot opened chec
+k\n");
local $/;
my $ind=<IND>;
while ($ind=~/id="(.*?)"/gi)
{
$indhash{$1}=$_;
}
close(IND);
}
Whether it may be memory problem. Please Give your suggestion.
Regards, RIO |