in reply to removing <br> from my output

Yes it worked.Thank you so much!

I have 2 more questions:

1. here is how my outfile.html looks
line1=10 line3=20 line3=30 line4=Mon May 18 02:28:58 EDT 2009 line5=60
and here is how my code looks for extracting lines like line1=10,line2=20
print FINAL if /(line1=\d+)/; print FINAL if /(line2=\d+)/;

but as my outfile.html has also some thing like below :

line4=Mon May 18 02:28:58 EDT 2009
how can I extract this line?

2.my final output has few lines repeating since my outfile.html has lines repeating.how can I make it extract these lines only once?