perl 多行注释
2010-11-09 17:04
134 查看
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
@font-face
{font-family:"/@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋体;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
=pod
codes to comment
=cut
注意:
pod is short for Plain Old
Documentations. =pod =cut只能在行首
. pod只是一个符号,可以换成其他字符
如果您用了一大块
pod 来描述你的代码,那么请尽量不要将其放在文件的上面或中间部分。虽然
perl 分析器能很快的跳过
pod ,但是这不是魔法,它还是需要一点时间的。它还是需要从磁盘中读入它,并且读入的目的仅仅是忽略它。将所有的
pod放到
__END__后面,那样
Perl 编译器就不会去注意它。
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
@font-face
{font-family:"/@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋体;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
=pod
codes to comment
=cut
注意:
pod is short for Plain Old
Documentations. =pod =cut只能在行首
. pod只是一个符号,可以换成其他字符
如果您用了一大块
pod 来描述你的代码,那么请尽量不要将其放在文件的上面或中间部分。虽然
perl 分析器能很快的跳过
pod ,但是这不是魔法,它还是需要一点时间的。它还是需要从磁盘中读入它,并且读入的目的仅仅是忽略它。将所有的
pod放到
__END__后面,那样
Perl 编译器就不会去注意它。
相关文章推荐
- perl中单行注释和多行注释使用介绍
- 修改C/C++的单行注释(//)为多行注释(/**/)的Perl代码
- 多行注释代码
- visual studio 中注释选中的多行代码的快捷键
- linux小技巧--vim下多行注释和取消多行注释
- perl中的多行匹配问题
- perl /m 当作多行处理
- codeblocks快速注释多行以及取消注释
- vi/vim如何添加或删除多行注释
- 正责表达式匹配多行注释
- Shell: Linux下在VI编辑器里添加连续多行注释
- Notepad++快捷键 单行、多行、区块注释
- matlab多行注释
- 让vim显示空格,及tab字符 vim 多行注释(转)
- editplus 正则删除 多行注释
- Python实现多行注释的另类方法
- source insight 多行注释
- shell的多行注释
- Vim 实现多行注释和取消多行注释
- Eclipse 多行注释选择