Even without using modules, you could do it in a much simpler way:
perl -lne 'print $1 while /(.{0,70}(?:\s|$))/g' < text_file.txt
Just change the size of your desired line inside the regexp.
In reply to Re: Tiny little paragraph wrapper
by rnahi
in thread Tiny little paragraph wrapper
by mw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |