http://www.perlmonks.org?node_id=14498

Cobra2411 has asked for the wisdom of the Perl Monks concerning the following question: (data formatting)

I have a comma-separated data file with three columns, e.g.

Fruit,apple,red Sandwich,hamburger,rare Drink,soda,diet
I need a script to delete a line based on the first and second field. For example,
removeline.pl comma.file sandwich hamburger
would remove the line, but
removeline.pl comma.file sandwich soda
would not.

Originally posted as a Categorized Question.