我是这里的初学者,我认为一切都很顺利,直到我收到此错误消息:prog.pl 第 24 行的语法错误,靠近“SignificanceofPlate” 由于编译错误,prog.pl 的执行中止。有人可以帮忙解释第24行有什么问题吗?如果第 24 行有问题,那么所有包含“SignificanceofPlate”的行不都应该有问题吗?他们都是一样的。24 号线是阿拉斯加下的第一个“SignificanceofPlate”。我认为它太长了所以我缩短了名称,但我仍然遇到了同样的问题。
#!/usr/bin/perl
# Perl Assignment - Hash of Hashes
# J Student
# Teams using a Hash of Hashes
# Alaska 1967 The Last Frontier
# Massachusetts 1928 No Motto
# New York 1966 New York
#Vermont 1960 See Vermont
# Mississippi 2019 No Motto #Driver's county of residence replaces motto. I do not approve of this.
# I have created the following array:
@teams = ("Alaska", "New Mexico", "New …Run Code Online (Sandbox Code Playgroud)