Skip to content

Commit

Permalink
perlclass: the statement form only affects the enclosing scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Grinnz authored and khwilliamson committed Jan 19, 2025
1 parent 54be012 commit bdc8044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pod/perlclass.pod
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ used within the scope of this declaration.

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

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

0 comments on commit bdc8044

Please sign in to comment.