my $arrayref = $customer->[0]{_address}; for my $address (@$arrayref) { # do whatever with $address ... }