$text = "How are you"; $break ="\n"; $text =~ s/\s/$break/g; print $text;