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

Oh geez sorry about that. No the first column does not matter. It's the remaining columns that I care about, I only want to see something that has values greater than zero consistently. For instance let’s say there are 15 rows and the first 5 are zero and within the last 10, 8 have values greater than zero.
  • Comment on Re^2: Remove array if data inconsistent

Replies are listed 'Best First'.
Re^3: Remove array if data inconsistent
by moritz (Cardinal) on Apr 22, 2009 at 14:40 UTC
    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.