edwardt_tril has asked for the wisdom of the Perl Monks concerning the following question:
so it seems to be it is a case sensitive side effect but the$a = "mssql"; if ($a == "mssql") {print "equal\n";} # gets print out as equal $a = "MSSQL"; if ($a == "mssql") {print "equal\n";} # print equal if ($a eq "mssql") {print "equal\n";} # print nothing
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: is behaviour undefined for string comparision with ==
by GrandFather (Saint) on Feb 16, 2006 at 22:48 UTC | |
|
Re: is behaviour undefined for string comparision with ==
by salva (Canon) on Feb 16, 2006 at 22:44 UTC | |
by bart (Canon) on Feb 16, 2006 at 23:30 UTC | |
by edwardt_tril (Sexton) on Feb 16, 2006 at 23:55 UTC | |
by GrandFather (Saint) on Feb 17, 2006 at 00:09 UTC | |
by spiritway (Vicar) on Feb 17, 2006 at 00:15 UTC | |
|
Re: is behaviour undefined for string comparision with ==
by ikegami (Patriarch) on Feb 17, 2006 at 00:02 UTC |