And, of course, the attack on Pearl Harbor had the opposite effect of what the Japanese military command intended.