push @AoH, %data
This flattens the hash %data, which is not what you want. Instead push @AoH, \%data, which pushes a (not flat) reference.
Please read perlreftut on how you can use references to build complex data structures.
In reply to Re: Adding data to hashes & comparing
by moritz
in thread Adding data to hashes & comparing
by hallikpapa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |