in reply to Re: Add at the begining of text
in thread Add at the begining of text
While that is true, it doesn't fit the problem statement the OP described. He needs every line that ends in < to be wrapped in <p></p> tags. How I'd do it:
while(<>) { if ( s/<$// ) { chomp; print '<p>', $_, "</p>\n"; } else { print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Add at the begining of text
by Anonymous Monk on Sep 01, 2009 at 04:10 UTC | |
by bv (Friar) on Sep 01, 2009 at 15:17 UTC | |
by Anonymous Monk on Sep 02, 2009 at 05:32 UTC |