in reply to adding newline to middle of a string cleanly
Update: removed unnecessary parens. I don't know what I was thinking when I put them in.$t =~ s/(.{39}[^\s]*)\s+/$1\n/; $t =~ s/([^\n]{60}[^\s]*)\s+/$1\n/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: adding newline to middle of a string cleanly
by tbone (Beadle) on Dec 10, 2003 at 14:44 UTC |