Being explicit helps:
if ($cell eq ' ' || $cell eq '0') { # skip it }
In Perl the operator dictates the context. eq turns both arguments into strings, == into numbers.
In reply to Re: confused: string and number comparison
by moritz
in thread confused: string and number comparison
by wwe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |