最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Perl中的多行注释

Perl crifan 4689浏览 0评论

【问题】

想要给一个Perl文件添加注释,而且是多行的注释。

【解决过程】

1.参考:

How do I enter a multi-line comment in Perl? [closed]

Re: Multi-line comments in perl code?

去试了试,搞懂了:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
 
=File decalaration
Function:
【已解决】Perl中的多行注释
 
Author:     Crifan Li
Version:    2012-12-24
Contact:    admin at crifan dot com
=cut
 
use strict;
use warnings;
 
print "Perl multi line demo";

 

【总结】

Perl中的多行注释的写法:

=xxx

=cut

其中xxx随便写,即可。

转载请注明:在路上 » 【已解决】Perl中的多行注释

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
85 queries in 0.366 seconds, using 21.96MB memory