in reply to Argument "" Isn't numeric in numeric eq (==)
my ($success, $fail) = (0, 0); for my $i (0 .. @f / 2) { if (($f[1 + $i * 2] || 0) == 1) { $success = 1 if ($f[$i * 2 + 2] || 0) == 1; $fail = 1 if ($f[$i * 2 + 2] || 0) == 2; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Argument "" Isn't numeric in numeric eq (==)
by karlgoethebier (Abbot) on Feb 09, 2014 at 16:14 UTC | |
by choroba (Cardinal) on Feb 09, 2014 at 16:34 UTC | |
by karlgoethebier (Abbot) on Feb 09, 2014 at 19:36 UTC | |
by choroba (Cardinal) on Feb 09, 2014 at 20:06 UTC |