in reply to Re^3: check if 2 values are equal
in thread check if 2 values are equal
Likewise, you are right about the "0100" not being equal to 100, which is what I meant about being sure that the values are represented internally as numbers.
So if you said:
$a = "01000"; $b = 1000; print $a eq $b ? 1 : 0; > 0 $a=$a+0; print $a eq $b ? 1 : 0; > 1
|
|---|