novacik
novacik

Reputation: 1507

What do colons mean in a subroutine definition?

In this source code i found this sub definition.

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

I don't understand what means those : colons and parameters. Can anybody point me to some docs?

Upvotes: 5

Views: 229

Answers (1)

ikegami
ikegami

Reputation: 385655

:Chained, :PathPArt and :Args are attributes provided by Catalyst.

Upvotes: 6

Related Questions