more useful options | |
PerlMonks |
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 ( [id://8822]=note: print w/replies, xml ) | Need Help?? |
and true to the perl motto, here's yet another (much simpler) way to do it:
@text = $messagebody =~ /(.{1,140}\W)/gms;
In Section
Seekers of Perl Wisdom
|
|