以下代码出错:
if (! defined $dchash{$location}) {
die "Unrecognized realm: $location";
}
elsif ($dchash{$location}) ne $realm) {
die "Incorrect realm for host in $location, expected $dchash{$location} got $realm";
}
syntax error at ./test.pl line 73, near ") ne"
Execution of ./test.pl aborted due to compilation errors.
验证$ realm的正确语法是什么??
答案 0 :(得分:6)
)
行上的第一个elsif
字符导致问题。删除它应该消除语法错误。