in reply to Re: Set the flag
in thread Set the flag

The file contains so many lines other than <p> tags.
How to use substitute function to replace
s/<p>/<con><p>/;
When the first

tag is found. and substitute

s/<\/p>/<\/con><\/p>/;
for the last </p> tag in the file

Replies are listed 'Best First'.
Re^3: Set the flag
by gmargo (Hermit) on Nov 05, 2009 at 16:59 UTC

    Now you're changing the spec!

    I gave you four cases of input above. Why don't you show me the four cases of output that you expect.