Function prototype: Difference between revisions

m
(Added zkl)
Line 439:
 
<lang perl>sub noargs(); # Declare a function with no arguments
sub twoargs($$); # Declare a function with two scalar arguments. The two sigils act as argument type placeholders</lang>
sub noargs :prototype(); # Using the :attribute syntax instead
sub twoargs :prototype($$);</lang>
 
=={{header|Perl 6}}==
Anonymous user