perl中heredoc使用说明

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

格式

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
0
投稿

猜你喜欢

  • 讲解SQL Server数据库的触发器安全隐患

    2009-01-13 14:01:00
  • C#调用python文件执行

    2023-11-16 21:35:42
  • 设计工作者必须了解的常识

    2008-04-06 13:56:00
  • vue调用本地摄像头实现拍照功能

    2024-04-28 09:21:46
  • python实现图片上添加图片

    2022-01-13 19:19:05
  • OpenCV模板匹配matchTemplate的实现

    2021-08-09 15:51:51
  • 浅谈SQL Server 对于内存的管理[图文]

    2024-01-14 07:41:44
  • 决策树的python实现方法

    2023-04-22 04:25:02
  • python对Excel的读取的示例代码

    2023-03-27 17:55:06
  • Mysql按条件计数多种实现方法详解

    2024-01-18 09:43:35
  • Pycharm安装并配置jupyter notebook的实现

    2022-11-14 14:24:28
  • Python创建一个空的dataframe,并循环赋值的方法

    2022-03-09 22:25:41
  • MySQL 数据类型和建库策略

    2024-01-20 12:32:40
  • © 版权符号显示不清楚解决方法

    2008-02-18 14:46:00
  • Mysql命令大全(完整版)

    2024-01-13 15:03:35
  • Git 命令行教程及实例教程(附github注册)

    2022-02-17 12:36:25
  • Python中的list.sort()方法和函数sorted(list)

    2021-07-29 17:02:23
  • Git 的基本操作、开发流程、实用技巧总结(陈彦贝)

    2022-05-10 03:03:35
  • 悟透JavaScript

    2008-05-29 22:15:00
  • js实现input+select组合 抛砖引玉

    2010-08-02 12:34:00
  • asp之家 网络编程 m.aspxhome.com