in reply to O, the horrors of references and complex data structures
Each iteration of the loop will create a new instance of %hash, while the old instances will be accessible through the references in @AoH.while (<>) { my %hash = split; push @AoH, \%hash; }
|
|---|