Xxaxx has asked for the wisdom of the Perl Monks concerning the following question:
Until now all of my Perl scripts have delt with smallish arrays and smallish hashes. Now I have need to run a script which will work on a few largish arrays.
I do not need all of the arrays at once, hence I can undef an array after I am done with it then move on to the next array.
I do not need all of the arrays at once, hence I can undef an array after I am done with it then move on to the next array.
I'm wondering if the undef is the best way to "throw out" the old array.
And I'm wondering if this will free the memory for subsequent use.
Sorry if the question is a bit odd but I have used languages in the past which did not handle freeing of memory properly and I'd rather not find out by hitting a brick wall when I scale later.
Thanks in advance.
Claude
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Does undef free ram?
by PetaMem (Priest) on Jul 17, 2002 at 07:53 UTC | |
by Abigail-II (Bishop) on Jul 17, 2002 at 12:19 UTC | |
by Anonymous Monk on Jul 18, 2002 at 00:26 UTC | |
Re: Does undef free ram?
by zejames (Hermit) on Jul 17, 2002 at 08:12 UTC | |
by dada (Chaplain) on Jul 18, 2002 at 10:26 UTC | |
Re: Does undef free ram?
by bronto (Priest) on Jul 17, 2002 at 12:05 UTC | |
Re: Does undef free ram?
by Elian (Parson) on Jul 17, 2002 at 15:20 UTC | |
Re: Does undef free ram?
by Marza (Vicar) on Jul 17, 2002 at 06:11 UTC | |
by Xxaxx (Monk) on Jul 17, 2002 at 06:31 UTC | |
Re: Does undef free ram?
by talexb (Chancellor) on Jul 17, 2002 at 13:10 UTC | |
by Elian (Parson) on Jul 17, 2002 at 15:16 UTC |
Back to
Seekers of Perl Wisdom