foreach my $value (in $collection) { # do something with $value here }