| Keywords related to control flow of your perl programDeclare a subroutine, possibly anonymouslyDaftar Isi - sub NAME (PROTO) BLOCK
- sub NAME : ATTRS BLOCK
- sub NAME (PROTO) : ATTRS BLOCK
This is subroutine definition, not a real function per se. Without aBLOCK it's just a forward declaration. Without a NAME, it's an anonymousfunction declaration, so does return a value: the CODE ref of the closurejust created. See perlsub and perlref for details about subroutines andreferences; see attributes and Attribute::Handlers for moreinformation about attributes. |
| |
|