in reply to Re^2: csv parsing with multiple missing values/multiple commas
in thread csv parsing with multiple missing values/multiple commas

So maybe you can also show us line 91?

Most likely, you have something like:

my $cell= $row->[ 10 ]; if( $cell == 42 ) { ... }

You could fix this by conditionally setting $cell to zero:

my $cell= $row->[ 10 ]; $cell ||= 0; if( $cell == 42 ) { ... }

Replies are listed 'Best First'.
Re^4: csv parsing with multiple missing values/multiple commas
by f77coder (Beadle) on Aug 02, 2014 at 17:55 UTC
    here is line 91
    line 90 my @hash = $csv->names; #returns hash line 91 my @vals = values @hash; #hash to array

      It's highly unlikely that this is the code that produces this error message:

      Argument "" isn't numeric in numeric eq (==) at ./test.pl line 91, <GE +N2> line 4516.

      So most likely, you have different line numbers, but in my opinion, the solution will remain the same. Set elements with the empty string to zero and the comparision will work.