in reply to Re^4: declare my variable in loop
in thread declare my variable in loop

No.

Your talk of "memory addresses" suggests to me that you are coming from a C mindset to Perl. I will try to explain this in terms of malloc:

Think of my as malloc:

SV* Array_Vals = malloc();

Think of push @Array_of_ALL_Vals, \@Array_Vals as Array_of_ALL_Vals[ iloop ] = Array_Vals;.

Then your Perl code looks like this translated to "C":

AV* Array_of_ALL_Vals; for my $iloop (0 .. 10){ SV* Array_Vals = malloc(); // actually, newAV() . Code in here to populate @Array_of_Vals . Array_of_ALL_Vals[ iloop ] = Array_Vals; }

Deallocating that memory again is some of the magic that Perl provides.