in reply to Reg. Perl file Exe problem

How is this related to perl?

Replies are listed 'Best First'.
Re^2: Reg. Perl file Exe problem
by ikegami (Patriarch) on Aug 03, 2005 at 05:00 UTC
    I'm guessing the .exe is a compiled Perl script. In any case, I don't see what we can do to help without more info. At a minimum, we'd need all of the following: a minimal script which causes the error, instructions on how to compile it, and instructions on how to run it (including all required input data).

      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