[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] clearing an array



J. Linder wrote:
> 
> Will the following clear an array totally from memory?
> 
> %array = ();
> 
>  or does it just zero all the elements thereof?
> 
> The reason I am asking is I am getting "out of memory" errors and I could
> zero the arrays after use.  This would free up memory by 75%!
> 
> TIA
> 
> Jann
[snip]


I am not sure if that will work or not but you might want to look at the
undef() function.  I believe that will do what exactly what you want.

				Gary

-- 
Gary Ebert                                 Operations Administrator
Voice:     (301) 428-2115                  Mobile Datacom Corporation
Fax:       (301) 428-1004                  19540 Amaranth Drive
Pager:     (800) 490-7478                  Germantown, MD  20875-2126

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch