for $value ( @array ) { # or ( @$arrayref ) # do something with $value }