句法
以下是此函数的简单语法-
sub NAME PROTO ATTRS BLOCK# Named, prototype, attributes, definition
sub NAME ATTRS BLOCK # Named, attributes, definition
sub NAME PROTO BLOCK # Named, prototype, definition
sub NAME BLOCK # Named, definition
sub NAME PROTO ATTRS # Named, prototype, attributes
sub NAME ATTRS # Named, attributes
sub NAME PROTO # Named, prototype
sub NAME # Named
sub PROTO ATTRS BLOCK # Anonymous, prototype, attributes, definition
sub ATTRS BLOCK # Anonymous, attributes, definition
sub PROTO BLOCK # Anonymous, prototype, definition
sub BLOCK # Anonymous, definition