my @array_of_hashes; for (my $i=1; $i<=10; $i++) { $array_of_hashes[$i] = ( stuff => 'stuffy', goes => 'gooey', here => "more $i" ); $array_of_hashes[$i]{sub_data}[6] = "seven"; }