“无法识别的字符\ xE2";在Hello World程序中 [英] "Unrecognized character \xE2" in a Hello World program
本文介绍了“无法识别的字符\ xE2";在Hello World程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Mac OS X Yosemite上编写我的第一个perl"hello world"程序,当我尝试使用终端运行该程序时,它显示此错误:
I am trying to write my first perl "hello world" program on Mac OS X Yosemite and it shows this error when I try to run this using terminal:
Unrecognized character \xE2; marked by <-- HERE after
print <-- HERE
near column 7 at test.pl line 4.
我不知道该程序出了什么问题.请在这里帮助我.
I couldn't figure out what was wrong in this program. Please help me out here.
代码:
#!/usr/bin/perl
use strict;
use warnings;
print "Hello world";
推荐答案
将print语句中的
""
字符更改为
"
例子
print "Hello world";
这篇关于“无法识别的字符\ xE2";在Hello World程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文