perl中heredoc使用说明
摘要:格式print
格式
print <<EOF
you text go here
EOF
复制代码 代码如下:
sub usage{
print <<EOF;
Usage: test.pl -c config, -f file -l lines
-c config file
-f file name
-l number of lines
EOF
}
NOTE: the last EOF must start at the beginning of the line!!!
you can use other words instead of EOF
【perl中heredoc使用说明】相关文章:
★ perl中chomp的使用介绍(chop和chomp函数区别)
上一篇:
有关perl正则表达式的一些杂项
下一篇:
Perl使用chdir的实例代码