加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

perl – 冒号在子程序定义中意味着什么?

发布时间:2020-12-16 06:26:20 所属栏目:大数据 来源:网络整理
导读:在 this source code我找到了这个子定义. sub upload_file : Chained( 'base' ) : PathPart( 'upload-file' ) : Args( 0 ){ 我不明白这是什么意思:冒号和参数.有人能指点我一些文件吗? 解决方法 :链接,:PathPArt和:Args是 attributes提供的 attributes.
在 this source code我找到了这个子定义.

sub upload_file : Chained( 'base' ) : PathPart( 'upload-file' ) : Args( 0 ){

我不明白这是什么意思:冒号和参数.有人能指点我一些文件吗?

解决方法

:链接,:PathPArt和:Args是 attributes提供的 attributes.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读