Nova has asked for the wisdom of the Perl Monks concerning the following question:
Thank you for your insights . Nova{ my $i=0 , @X ; while ( $i < 500000 ) { push @X , ["a.".$i , "b.".$i , "c.".$i , "d.".$i ] ; if ($i%10000==0) {printf "Index $i $X[$i][2] \n\n" ;} $i++ ; } ; printf "Max X index Before undef %d\n",$#X ; sleep 5 ; undef @X ; sleep 5 ; printf "Max X index After undef %d\n",$#X ; }; sleep 15 ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: memory deallocation
by oha (Friar) on Oct 01, 2007 at 14:25 UTC | |
by Fletch (Bishop) on Oct 01, 2007 at 14:35 UTC | |
by ikegami (Patriarch) on Oct 01, 2007 at 14:40 UTC | |
by Nova (Novice) on Oct 01, 2007 at 17:45 UTC | |
|
Re: memory deallocation
by kyle (Abbot) on Oct 01, 2007 at 14:45 UTC | |
|
Re: memory deallocation
by cdarke (Prior) on Oct 01, 2007 at 15:13 UTC | |
by kyle (Abbot) on Oct 01, 2007 at 15:35 UTC | |
|
Re: memory deallocation
by shmem (Chancellor) on Oct 02, 2007 at 08:20 UTC |