网络编程
位置:首页>> 网络编程>> 网络编程>> perl中heredoc使用说明

perl中heredoc使用说明

  发布时间:2023-09-20 06:29:40 

标签:perl,heredoc

格式

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

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com