in reply to How can I split a line on word boundaries closest to a certain length?
@text = $messagebody =~ /(.{1,140}\W)/gms;