Skip to content

Commit 2ee29c2

Browse files
committed
code requires variable declarations
1 parent a22ec2a commit 2ee29c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/Language/objects.pod6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,12 @@ Method names can be resolved at runtime with the C<.""> operator.
299299
The syntax used to update C<$.notes> changed in this section with respect
300300
to the previous L<#Attributes> section. Instead of an assignment:
301301
302+
=for code :preamble<my $vacation>
302303
$vacation.notes = 'Pack hiking gear and sunglasses!';
303304
304305
we now do a method call:
305306
307+
=for code :preamble<my $trip>
306308
$trip.notes("First steps");
307309
308310
Overriding the default auto-generated accessor means it is no longer

0 commit comments

Comments
 (0)