我写了一个代码:
my $str = 'http://www.ykt.ru/cgi-bin/go?http://ya.ru';
my $str2 = 'http://ya.ru';
if ($str == $str2)
{
print "str = str2";
}
else
{
print "str != str2";
}
Run Code Online (Sandbox Code Playgroud)
它告诉我str = str2.但这是错误的.只有$ str ='http://ya.ru'; 这是真的.怎么了?