for my $person (@people) { # Do anything you want to $person # Do anything you want to $person->{whatever} }