I would like to have a blank line in between line 2 and 3. where can I place the "\n" in my code so the outout will be like below?
If you wish to continue assuming each match will occur only once and in order, you could do
while (<OUTFILE>) { print FINAL $_ if /(my first line)/; print FINAL "$_\n" if /(my second line)/; print FINAL $_ if /(my third line)/; }
I was successful till that point but my outfile.html has "br" at the end of each line as shown below.
s/<br>$//;
In reply to Re: simple question on next line parameter
by ikegami
in thread simple question on next line parameter
by yskmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |