in reply to Delete the line

Obviously you'll need to split the line to get to its fields, and then do a comparison, and only print if the comparison is successful. See perlintro.