in reply to If doesn't work

From the perlop manpage:
Binary "==" returns true if the left argument is numerically equal to the right argument. Binary "eq" returns true if the left argument is stringwise equal to the right argument.
What does $value1 and $value2 contain?