in reply to Re^2: check if 2 values are equalin thread check if 2 values are equal
I think you can do away with the third condition of ($val1 == $val2).
Tricky one. I thought the same at first.
But think of 0 and 0.0 or 0E0 - all numerically equal, but not sting equal.
Same goes for 1.1 and 1.10 and of course, there's more to think about.
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (187 votes). Check out past polls.