in reply to Re^2: Remove array if data inconsistent
in thread Remove array if data inconsistent

Ok, then the first step is to parse the file. That's been done many times before, and you should re-use such a solution, like Text::CSV or Text::CSV_XS.

Then you have each row as an array, and you only have to iterate over them and check the condition you described.

So do it, and when you run into problems come back with more specific questions.

  • Comment on Re^3: Remove array if data inconsistent