优先级不同 and和or是最低的。所以你可以 $a==1 || $b==2 and print "Assertion Succesful"; 或者 open AAA,"foo.txt" or die "Cannot open file";