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&ndash;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


In reply to Re^3: Reg. Perl file Exe problem by Anonymous Monk
in thread Reg. Perl file Exe problem by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.