Вот так можно:
@arr_str = ('This is my str_1', 'This is my str_2', 'This is my str_3'); @arr_words = split(/\s+/,join(' ',@arr_str)); print $_, "\n" foreach (@arr_words); //печать
No comments:
Post a Comment