我收到错误
Can't find string terminator '"' anywhere before EOF
在Mac OSX上运行以下脚本时。请注意,此脚本是直接从Mac论坛复制的......
#!/usr/bin/perl
print "Hi there!\n”
答案 0 :(得分:2)
从第二行第七个位置开始的双引号字符串文字未终止,因为您在尝试结束文字时使用了<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action <span class="caret"></span>
</button>
<div class="dropdown-menu row">
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
</div>
</div>
而不是”
。
替换
"
与
print "Hi there!\n”