in reply to Re: ASCII to HTML
in thread ASCII to HTML
tag). Here's another approach:
For extra credit, put that in a one-liner. *sigh*my $str = TEXT; Foo is on this line, and bar is in this paragraph. Baz is in a new paragraph. TEXT my @para = split(/\n\n/, $str); s!\n!<br>\n! foreach @para; $str = join "\n<p>\n", @para; print ">>$str<<\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: ASCII to HTML
by btrott (Parson) on Apr 05, 2000 at 02:53 UTC | |
by little_mistress (Monk) on Apr 05, 2000 at 23:11 UTC |