Function prototype: Difference between revisions
Content added Content deleted
(Demonstrate packages) |
|||
Line 189: | Line 189: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
The perl scripting language allows prototypes to be checked during JIT compilation. Prototypes should be placed before subroutine definitions, declarations, or anonymous subroutines. The sigil [ |
The perl scripting language allows prototypes to be checked during JIT compilation. Prototypes should be placed before subroutine definitions, declarations, or anonymous subroutines. The sigil [[Special characters#Perl|special symbols]] act as argument type placeholders. |
||
<lang perl>sub noargs(); # Declare a function with no arguments |
<lang perl>sub noargs(); # Declare a function with no arguments |