When I print or assign the @temp_array in quotes to a dummy variable, things work, the array goes and gets processed. However if I don't print or assign it to a dummy variable everything seems to break ?? Can anyone explain why. It seems as though the print and or assignment in quotes flushes something ? I stumbled upon this as I was removing all my print/debug statements, it took me several hours to isolate four places where this occurred in the code.for my $i (0..$#{@{$ChargesArray}}) { my @temp_array = @{$ChargesArray->[$i]}; my $buff_4 = "@temp_array"; # print "@temp_array\n"; }
In reply to Flushing and array ? by bgants
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |