在Perl中,如果使用段落長度爲1的大字符串且不帶換行符,那麼如何使用拆分和RegEx(或其他)在一個字邊界處將段落分成幾乎相同大小的塊,以便以等寬字體顯示?將包含連續段落的字符串拆分爲左對齊的行列
例如,我該如何改變這種:
"When you have decided which answer is the most helpful to you, mark it as the accepted answer by clicking on the check box outline to the left of the answer. This lets other people know that you have received a good answer to your question. Doing this is helpful because it shows other people that you're getting value from the community."
到這一點:
"When you have decided which answer is the most \n"
"helpful to you, mark it as the accepted answer \n"
"by clicking on the check box outline to the \n"
"left of the answer. This lets other people \n"
"know that you have received a good answer to \n"
"your question. Doing this is helpful because \n"
"it shows other people that you're getting \n"
"value from the community.\n"
感謝, 本