With your code, the my declaration will create a fresh @Array_Vals every trip around the loop.
If you want to see your data structure, use Data::Dumper to show it:
my @Array_of_ALL_Vals; for my $iloop (0 .. 10){ my @Array_Vals; . Code in here to populate @Array_of_Vals . push @Array_of_ALL_Vals,\@Array_Vals; print Dumper \@Array_of_ALL_Vals; }
In reply to Re^3: declare my variable in loop
by Corion
in thread declare my variable in loop
by gauss76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |