szabgab has asked for the wisdom of the Perl Monks concerning the following question:
I have a string that I'd like to split up into chunks no longer than N characters.
I'd like to make sure I only split on white spaces. If no white space within the first N characters then I just split at N.
I'd like to make sure I only split on white spaces. If no white space within the first N characters then I just split at N.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: breaking up lines along white spaces with max length
by pelagic (Priest) on Feb 02, 2005 at 10:18 UTC | |
Re: breaking up lines along white spaces with max length
by Random_Walk (Prior) on Feb 02, 2005 at 10:36 UTC | |
by pelagic (Priest) on Feb 02, 2005 at 10:51 UTC | |
Re: breaking up lines along white spaces with max length
by gellyfish (Monsignor) on Feb 02, 2005 at 11:14 UTC |
Back to
Seekers of Perl Wisdom