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; } }
In reply to Re^2: Add at the begining of text
by bv
in thread Add at the begining of text
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |