in reply to Re: Array to Array of hashes
in thread Array to Array of hashes

The data was a Dump from the array @data, but how you were saying, how would you use "$_" instead of assigning or hard-code "1" and "2" ... to the code?
my @data = ( ["John","10/30","Main Street"], ["Mary","6/1","Oak Street"] # more data here ); foreach (@data) { push @AoH, { NAME => $_, DOB => $_, ADDRESS => $_, } }
Thanks!