in reply to Re: Passing an array of hashes to a subroutine
in thread Passing an array of hashes to a subroutine
Fix:
my @array; { my %hash; ... push @array, \%hash; } { my %hash; ... push @array, \%hash; }
Or:
my @array; my %hash; # ... push @array, { %hash }; # ... push @array, { %hash };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing an array of hashes to a subroutine
by ikegami (Patriarch) on May 22, 2007 at 05:29 UTC | |
by blazar (Canon) on May 22, 2007 at 10:19 UTC |