三、运行
用文本编辑器编辑好你的Perl程序,加上可执行属性:$chmod
+x <program>就可以执行了:$./<program>。如果系统提示:"/usr/local/bin/perl
not found",则说明你没有安装成功,请重新安装。
注:你的程序的第一行必须为#!/usr/local/bin/perl(perl所在位置)。 四、注释:
注释的方法为在语句的开头用字符#,如:
# this line is a comment
注:建议经常使用注释使你的程序易读,这是好的编程习惯。