psr473 has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I have input raw files size in GB. I need to create small files with the content based on some search criteria. For this I have opened file and reading the contents of input file into array. At the time reading I am getting Out Memory Error (on both Windows & UNIX). Currently I am trying on Windows. Below is the code:
please help me to get rid of this error. Thank you in advance for your help.open (IN, filename) or die "cann't open file filename : $!\n"; my @arr = <IN>; close (IN);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: out of memory error while reading file contents into an array
by tokpela (Chaplain) on Aug 11, 2009 at 14:03 UTC | |
|
Re: out of memory error while reading file contents into an array
by kennethk (Abbot) on Aug 11, 2009 at 13:52 UTC | |
by psr473 (Novice) on Aug 12, 2009 at 11:41 UTC | |
|
Re: out of memory error while reading file contents into an array
by ssandv (Hermit) on Aug 11, 2009 at 15:32 UTC | |
|
Re: out of memory error while reading file contents into an array
by Bloodnok (Vicar) on Aug 11, 2009 at 13:49 UTC | |
|
Re: out of memory error while reading file contents into an array
by JavaFan (Canon) on Aug 11, 2009 at 13:43 UTC |