for my $email (@{$info->{$name}}) { my $checking = printing( names => $name, emails => $email, ); }