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?

Replies are listed 'Best First'.
Re^2: removing <br> from my output
by raisputin (Scribe) on May 19, 2009 at 20:28 UTC
    while (<OUTFILE>) { s/<br>//gi; print FINAL if /(line\d=(\d||[A-Za-z]{3}).)/; }
    May be fugly (guys?) but that extracts the lines as you show them anyway. As for not having duplicates. I am not sure, but I will see if I can come up with something. I'm kinda a newb at perl, so...