map { $_ .. $_+2 } (1,4,7) is what I mean to put #### $x = "\n".join "\n", map { join ' ', ( $_ .. $_ + 2 ) } ( 1, 4, 7 );