|
|
| "be consistent" | |
| PerlMonks |
Re: How to split a string into two lines, intelligentlyby JavaFan (Canon) |
| on Oct 09, 2008 at 22:15 UTC ( #716327=note: print w/ replies, xml ) | Need Help?? |
|
Assuming the first word doesn't consist of more than 50 characters (in which case, no solution is possible), a simple will do. The first line will not be more than 50 characters, and the remainder will be in te second line. It's not the solution that makes the longest first string possible with the given constraints, but then, you weren't asking for it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||