Re: Conserving memory

2008-10-23 Thread Dr.Ruud
kenTk schreef: > My real application is in logging numerous sets of results each set > saved in > an anonymous array and those arrays referenced from a master array > called @$arrayREFS > When the results are read I clear the data using > @{$arrayREFS[$index]}=(); > but am concerned that Perl's au

Re: Conserving memory

2008-10-23 Thread Chas. Owens
On Wed, Oct 22, 2008 at 16:25, kenTk <[EMAIL PROTECTED]> wrote: snip > Thanks. > My real application is in logging numerous sets of results each set > saved in > an anonymous array and those arrays referenced from a master array > called @$arrayREFS > When the results are read I clear the data usin

Re: Conserving memory

2008-10-23 Thread kenTk
On Oct 21, 10:14 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > "Mr. Shawn H. Corey" schreef: > > > > > kenTk: > >> If I populate @array > >> Then > >> @array=(); > >> Is the memory that was used for that array now freed? > > > Yes, providing no other variable contains those items.  For example: > > > my

Re: Conserving memory

2008-10-21 Thread Dr.Ruud
"Mr. Shawn H. Corey" schreef: > kenTk: >> If I populate @array >> Then >> @array=(); >> Is the memory that was used for that array now freed? > > Yes, providing no other variable contains those items. For example: > > my @a = qw( a b c ); > my @b = @a; > @a = (); > > Since @b contains everything

Re: Conserving memory

2008-10-21 Thread Chas. Owens
On Tue, Oct 21, 2008 at 11:08, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > On Mon, 2008-10-20 at 23:29 -0700, kenTk wrote: >> If I populate @array >> Then >> @array=(); >> Is the memory that was used for that array now freed? > > Yes, providing no other variable contains those items. For examp

Re: Conserving memory

2008-10-21 Thread Mr. Shawn H. Corey
On Mon, 2008-10-20 at 23:29 -0700, kenTk wrote: > If I populate @array > Then > @array=(); > Is the memory that was used for that array now freed? Yes, providing no other variable contains those items. For example: my @a = qw( a b c ); my @b = @a; @a = (); Since @b contains everything is @a, it

Conserving memory

2008-10-21 Thread kenTk
If I populate @array Then @array=(); Is the memory that was used for that array now freed? Similarly If I populate the anonymous array @{$arrayREFS[$index]} Then @{$arrayREFS[$index]}=(); Is the memory that was used for that anonymous array now freed? Thanks in advance -- To unsubscribe, e-ma