in reply to confused: string and number comparison
moritz use of eq is what you need as it's the most clear. However, regex is always an option too.
if ($cell =~ m/^[ 0]$/) { # skip it }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: confused: string and number comparison
by wwe (Friar) on Mar 23, 2011 at 18:23 UTC |