Skip to content

Commit 63ccd0d

Browse files
committed
Update signatures placement in perlsub pod
1 parent a954e3d commit 63ccd0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pod/perlsub.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ X<subroutine, declaration> X<sub>
1515

1616
sub NAME BLOCK # A declaration and a definition.
1717
sub NAME(PROTO) BLOCK # ditto, but with prototypes
18-
sub NAME SIG BLOCK # with signature
18+
sub NAME(SIG) BLOCK # with a signature instead
1919
sub NAME : ATTRS BLOCK # with attributes
2020
sub NAME(PROTO) : ATTRS BLOCK # with prototypes and attributes
21-
sub NAME : ATTRS SIG BLOCK # with attributes and signature
21+
sub NAME(SIG) : ATTRS BLOCK # with a signature and attributes
2222

2323
To define an anonymous subroutine at runtime:
2424
X<subroutine, anonymous>
2525

2626
$subref = sub BLOCK; # no proto
2727
$subref = sub (PROTO) BLOCK; # with proto
28-
$subref = sub SIG BLOCK; # with signature
28+
$subref = sub (SIG) BLOCK; # with signature
2929
$subref = sub : ATTRS BLOCK; # with attributes
3030
$subref = sub (PROTO) : ATTRS BLOCK; # with proto and attributes
31-
$subref = sub : ATTRS SIG BLOCK; # with attribs and signature
31+
$subref = sub (SIG) : ATTRS BLOCK; # with signature and attributes
3232

3333
To import subroutines:
3434
X<import>

0 commit comments

Comments
 (0)