No such thing as a small change | |
PerlMonks |
Why are these 2 strings equal?by JackDno7 (Initiate) |
on Jun 09, 2001 at 01:42 UTC ( [id://87089]=perlquestion: print w/replies, xml ) | Need Help?? |
JackDno7 has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a script that takes as the input the name of a city, and then matches it to a field in a data file to get the proper output. Two of the cities I deal with are Evansville and South Bend. When I compare them using the eq comparator, they don't match (as they shouldn't). But when I use the == comparator, the output says they are equal. Why is that?
Back to
Seekers of Perl Wisdom
|
|