in reply to N/A replacement not working
($h[$i] eq 'N/A') ? 0 : $h[$i];
that looks suspicious to me... I'm thinking what you really wanted was:
But having typed that just now I have a question as to what has been assigned to $i? Either your code snippet is woefully incomplete or ... ??? Did you use strict;?$h[$i] = ($h[$i] eq 'N/A') ? 0 : $h[$i];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: N/A replacement not working
by baperl (Sexton) on Aug 10, 2011 at 15:29 UTC | |
by jethro (Monsignor) on Aug 10, 2011 at 15:47 UTC | |
by duyet (Friar) on Aug 10, 2011 at 15:54 UTC | |
by baperl (Sexton) on Aug 10, 2011 at 16:31 UTC |