perl here document

前端之家收集整理的这篇文章主要介绍了perl here document前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. 用echo输出文件时,如果文件有双引号,则需要用 [code lang="perl"]echo 'YourText ';[/code](用单引号包含)
  2. perl here document的问题:

    [code lang="perl"] print >> END ;<br /> YOUR TEXT HERE or $var And TEXT END my $header = << "EOF"; test EOF [/code]

    记住!在END的前后都不能有空格或字符!Vim有时没显示这个语句块变色,可能是因为你的END后面有空格 !!!(原来PHP here document需要<<< (3个))

猜你在找的Perl相关文章