perl中heredoc使用说明_perl教程-查字典教程网
perl中heredoc使用说明
perl中heredoc使用说明
发布时间:2016-12-28 来源:查字典编辑
摘要:格式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学习
    热门perl学习
    脚本专栏子分类