for my $x (@list) { do something with $x }