http://qs321.pair.com?node_id=51419

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.