http://qs321.pair.com?node_id=933726


in reply to Array reference of hash references

Initialize an array with parens (or not at all), *not* with square brackets.
perl -MData::Dumper -wle 'my @official = []; print Dumper \@official;' $VAR1 = [ [] ]; perl -MData::Dumper -wle 'my @official = (); print Dumper \@official;' $VAR1 = [];
Also, declare @official outside the while loop. Otherwise, you are re-initializing it on each loop.