Perl: the Markov chain saw | |
PerlMonks |
How do I wrap long lines at a fixed width, ignoring word boundaries?by Haggis (Initiate) |
on Jan 12, 2001 at 22:22 UTC ( [id://51419]=perlquestion: print w/replies, xml ) | Need Help?? |
Haggis has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (data formatting) I have a very long string containing no newlines. I want to insert a "\n" every 128 characters. Text::Wrap doesn't do what I want as it breaks lines at whole words, resulting in lines that can be less than 128 characters. Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|