pimperator has asked for the wisdom of the Perl Monks concerning the following question:
I have a file that's ~2.3 million lines long and has three columns I'm only interested in the third column. I need to add up all of the variables. First I thought it was due to scientific notation (-0.2E-4). But a made copies of the raw files in decimal notation, and that did not work. Could it be that it's too large for perl? or it could be a non-numeric variable in the data file, so how would I test for that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl returns NaN after addition
by LanX (Saint) on Oct 17, 2013 at 00:45 UTC | |
by pimperator (Acolyte) on Oct 17, 2013 at 01:03 UTC | |
by LanX (Saint) on Oct 17, 2013 at 01:09 UTC | |
|
Re: Perl returns NaN after addition
by syphilis (Archbishop) on Oct 17, 2013 at 01:35 UTC | |
by tinita (Parson) on Oct 17, 2013 at 01:42 UTC | |
by syphilis (Archbishop) on Oct 17, 2013 at 03:37 UTC |