in reply to Array to Array of hashes

You have issues with your initial data:

I strongly recommend that you use the strict and warnings pragmata in all your code.

There's documentation on complex data structures. These may be a good place to start:

I've had to make some changes to your initial data; however, the following is probably close to what you want.

#!/usr/bin/env perl use strict; use warnings; use Data::Dump; my @data = ( [ "JOHN JR", "10/30/2011", "Main Street"], [ "JOE DOE", "11/30/1999", "Broke Street"], [ "MARY DEE", "06/01/2014", "Pearl Street"] ); my @AoH; @{$AoH[@AoH]}{qw{NAME DOB ADDRESS}} = @$_ for @data; dd \@AoH;

Output:

[ { ADDRESS => "Main Street", DOB => "10/30/2011", NAME => "JOHN JR" } +, { ADDRESS => "Broke Street", DOB => "11/30/1999", NAME => "JOE DOE" +}, { ADDRESS => "Pearl Street", DOB => "06/01/2014", NAME => "MARY DEE" + }, ]

— Ken