Your passing syntax is fine - you just need to understand that what you have passed is a reference to an array of Hash-refs.
Your iteration "foreach my $d (@{$array_of_hashes})" aliases $d to a hashREF - which you need to de-reference.
try
print $d->{one1} ; # De-reference $d, then use the key "one1" to get t +he value
"An undefined problem has an infinite number of solutions." - Robert A. Humphrey "If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman
In reply to Re: Passing an array of hashes to a subroutine
by NetWallah
in thread Passing an array of hashes to a subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |