Skip to content

Commit bdc8044

Browse files
Grinnzkhwilliamson
authored andcommitted
perlclass: the statement form only affects the enclosing scope
1 parent 54be012 commit bdc8044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pod/perlclass.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ used within the scope of this declaration.
7070

7171
Classes can be declared in either block or statement syntax. If a block is
7272
used, the body of the block contains the implementation of the class. If the
73-
statement form is used, the remainder of the file is used up until the next
74-
C<class> or C<package> statement.
73+
statement form is used, the remainder of the current scope or file is used up
74+
until the next C<class> or C<package> statement.
7575

7676
A C<class> declaration can optionally have a version number, similar to the
7777
C<package> keyword. It can also optionally have attributes. If both are

0 commit comments

Comments
 (0)