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

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

Perl crifan 4315浏览 0评论

【问题】

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

【解决过程】

1.参考:

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

Re: Multi-line comments in perl code?

去试了试,搞懂了:

#!/usr/bin/perl

=File decalaration
Function:
【已解决】Perl中的多行注释
https://www.crifan.com/perl_multi_line_comment

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.158 seconds, using 21.91MB memory