Also, declare @official outside the while loop. Otherwise, you are re-initializing it on each loop.perl -MData::Dumper -wle 'my @official = []; print Dumper \@official;' $VAR1 = [ [] ]; perl -MData::Dumper -wle 'my @official = (); print Dumper \@official;' $VAR1 = [];
In reply to Re: Array reference of hash references
by Util
in thread Array reference of hash references
by PrincePerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |