Quote:
perl is a rather loose language and as such you won't get compilation errors
|
No, perl is not loose
It makes perfect sense to write $string1==$string2, it means 'are they the same scalar object ?' , that's why you get no error.
Testing string for equalty requires the eq operator
Testing for identity requires ==
***edit ***
if what's above is not clear, it means if you want to know if two string have the same value, use eq
just my 2 coppers
