in reply to Array to Array of hashes

I think your data structure is not what you intend. Your @data has only 1 row (an array ref), instead of 3 rows, each one an array.

Try instead (as NetWallah suggests):

@data = ( ["John","10/30","Main Street"], ["Mary","6/1","Oak Street"] ); foreach my $aref (@data) { push @AoH, { NAME => $aref->[0], ...
Dum Spiro Spero