lightoverhead has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
my question is:
if I use the code:
#!/usr/bin/perl -w use strict; my @array; map {$_+1}@array[10000..90000]; map {$_+1}@array[91000..92000];
the array elements from 0 to 9999 and 90001 to 90999 will all be "undef". And at this point they will occupy a chunk of memory. Is there a method that I can save the memory that was occupied by these "undef" and use them later?
Thanks.
Back to
Seekers of Perl Wisdom