Fix:
my @array; { my %hash; ... push @array, \%hash; } { my %hash; ... push @array, \%hash; }
Or:
my @array; my %hash; # ... push @array, { %hash }; # ... push @array, { %hash };
In reply to Re^2: Passing an array of hashes to a subroutine
by blazar
in thread Passing an array of hashes to a subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |