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

前端之家收集整理的这篇文章主要介绍了perl – 冒号在子程序定义中意味着什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
this source code我找到了这个子定义.

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

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

解决方法

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

猜你在找的Perl相关文章