The chomp is to get rid of the newline, since we don't really want to count it as a character (i.e. 80 chars + a newline should go on one line even though it's more than 80 chars).chomp; print join("\n", grep(/./, split(/(.{80})/))), "\n";
In reply to Re: how do I line-wrap while copying a file to stdout?
by nardo
in thread how do I line-wrap while copying a file to stdout?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |