in reply to Wordwrap text
UPDATE:<td width="25%">big long sentance . . .</td>
UPDATED UPDATE:use constant POS => 10; my $str = 'big old long sentance blah blah blah'; my $len; foreach (split(/\s/,$str)) { $len += length; print; ($len % POS) ? print ' ' : print '<br>'; }
#inside foreach $len += length; print; if ($len > POS) { # thanks nlafferty print '<br>'; $len = 0; } else { print ' '; }
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Wordwrap text
by nardo (Friar) on Jul 27, 2001 at 00:39 UTC | |
by bastard (Hermit) on Jul 27, 2001 at 02:13 UTC | |
|
Re: (jeffa) Re: Wordwrap text
by nlafferty (Scribe) on Jul 27, 2001 at 01:13 UTC |