Hi all,
I have a perl code that reads a file into a list in an array of array. Then it rearranges each nested array in another format - 4 columns instead of 2 - by randomly picking an element of each array and reassembling another array. It's been working when the infile is small. However, when it is large the program crashes and spits the following message:
*** malloc: vm_allocate(size=262144) failed with 3 *** malloc[591]: error: Can't allocate region Out of memory!
which is obviously related to memory allocation.
Can someone help me fixing this problem?
Thanks
Julianno Sambatti
Are you sure you haven't just hit the physical limit of memory on the machine? Is this under win32?
How big is the file when it starts to exhibit this behavior, is your Perl configured with large file support? Are you processing the file line by line when possible as opposed to slurping it?
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>