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

时间:2013-11-19 02:35:27

标签: perl

this source code我找到了这个sub定义。

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

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

1 个答案:

答案 0 :(得分:6)

attributes提供了{p> :Chained:PathPArt:Args Catalyst

相关问题