or if it is an array ref, then assign it to an empty array ref@myarray = ();
Cleaning it up will take a little time, but not enough to worry about. Doing this will free up some memory(it won't release memory back to the OS) for perl to reuse.$myarray_ref = [];
In reply to Re: Clearing an Array of Array's from memory
by tcf22
in thread Clearing an Array of Array's from memory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |