@first_thirty[0..29] = split " ", $string; #### $first_thirty = join " ", (split " ", $string)[0..29];