|We don't bite newbies here... much|
Does undef free ram?by Xxaxx (Monk)
|on Jul 17, 2002 at 05:53 UTC||Need Help??|
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'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.