in reply to How do I split a string at a char position that's also the end of a word?

hmmm, wrapping text ... i would think (untested):
foreach my $line (@file) { $line =~ s/(.{70}\B{1,10})/$1\n/g); }
you are not working because of a few things. the ones which stick out are the missing parens in the first half of the s///, which define $1. The other is the \b{70}, which looks for 70 word boudries in a row. While my solution may not work, these are a few things that might help you find the way. My version gobbles 70 chars, then starts looksing for boundries over the next 10 chars. A better way would be to read 80 chars, then back track to the last word boudry, or, see Text::Wrapper
can't sleep clowns will eat me
-- MZSanford