in reply to Array to Array of hashes

There are at least 2 issues:

        The best defense against logic is ignorance.

Replies are listed 'Best First'.
Re^2: Array to Array of hashes
by Anonymous Monk on Oct 27, 2015 at 17:34 UTC
    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!