in reply to How to split a string into two lines, intelligently
will do. The first line will not be more than 50 characters, and the remainder will be in te second line.s/\s/\n/;
It's not the solution that makes the longest first string possible with the given constraints, but then, you weren't asking for it.
|
|---|