or#example 1 $content =~ s/(.{1,$width}) /$1<BR>/g; print $content;
The $width represents the largest number of characters each line should have.#example 2 $content =~ s/(.{1,$width}) |([^ ]{$width})/$1$2<BR>/g; print $content;
In reply to Re: Re: (jeffa) Re: Wordwrap text
by bastard
in thread Wordwrap text
by nlafferty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |