for (my $item = 0; $item <= $#{$ref}; $item++) { #### for my $item (0 .. $#{$ref}) { #### foreach my $hashref (@{$ref}) {