手机
当前位置:查字典教程网 >脚本专栏 >perl >perl中heredoc使用说明
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模块编写说明

Perl List::Util模块使用实例

perl哈希hash的常见用法介绍

Perl中chomp和chop的区别介绍

Perl语法中Perl运算符用法指南

perl中的范围声明our-my-local介绍

Perl中使用MIME::Lite发送邮件实例

Perl中use和require用法对比分析

Perl中的单行注释和多行注释语法

Perl中的正则表达式介绍

精品推荐
分类导航