foreach (...) { multiple lines of statements } #### @array = grep { multiple lines of statements } @array;