@array = grep { multiple lines of statements } @array;