perlquestion
lightoverhead
<p>Hi,</p>
<p>my question is:</p>
<p>if I use the code: </p>
<c>
#!/usr/bin/perl -w
use strict;
my @array;
map {$_+1}@array[10000..90000];
map {$_+1}@array[91000..92000];
</c>
<p>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?</p>
Thanks.