in reply to
regexp word break help
Does it have to be a regexp? Why?
use Text::Wrap qw(wrap $columns);
$columns = 45;
my @lines = wrap('', '', 'Make sure this string is 45 chars or less, a
+nd if you have to truncate it to make it shorter, only break it betwe
+en a word (\s)');
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (243 votes),