4 messages in com.mysql.lists.perlRe: Memory escaping while using array...
FromSent OnAttachments
webmaster06 Dec 2004 01:54 
jose isaias cabrera06 Dec 2004 07:46 
webmaster06 Dec 2004 22:52 
Peter Pentchev07 Dec 2004 02:28 
Subject:Re: Memory escaping while using array reallocation.
From:webmaster (webm@aztpa.ru)
Date:12/06/2004 10:52:03 PM
List:com.mysql.lists.perl

Hello, again. You wrote: [...]

Hey, why take our word for it... try it. :-)

[...] Good idea, but how about to use scoping rules: while ( [some condition] ) { { { my @array = (1,2,3,4,5,6); ... some code ... } # local scope (inner level) # the array have been cleaned up properly here my @array = (); ... array manipulation instructions ... }# local scope (outer level) # the array have been cleaned up properly here }# while

Thanks. , AZtpa

Previous discussion :

Hi, everybody.

I'm wondering if I use next instructions: while ( [some condition] ) { my @array = (1,2,3,4,5,6); ... some code ... @array = (); } then I hope Perl environment must be care about sufficient usage memory zone, occupied by array allocation during first declaration (e.g. my @array = (1,2,3,4,5,6);). Does it clean up all elements of array properly while proccessing statement '@array = ()' ?

Thanks , AZtpa