foreach $i (@arr)) { # do something }