Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've got a string of undertermined length,
which will contain text with embedded newlines.
I'd like to split this string into chunks of no
more than 140 characters (but splitting on a word
boundry, so as to not cut words apart).
Ideally, I'd like to be left with an array
containing the split strings.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I split a line close to a certain length, but on a word boundary?
by poznick (Initiate) on Apr 25, 2000 at 02:07 UTC | |
Re: How can I split a line
close to a certain length, but on a word boundary?
by chromatic (Archbishop) on Apr 21, 2000 at 20:12 UTC | |
Re: How can I split a line close to a certain length, but on a word boundary?
by poznick (Initiate) on Apr 24, 2000 at 21:41 UTC |
Back to
Seekers of Perl Wisdom