您现在的位置是:网站首页> 编程资料编程资料

perl中heredoc使用说明_perl_

2023-05-26 347人已围观

简介 perl中heredoc使用说明_perl_

格式

print <you text go here
EOF

复制代码 代码如下:

sub usage{
    print <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

-六神源码网