in reply to Why are these 2 strings equal?

Because == is for numbers. Use eq. Read some documentation (perlop).