Skip to content

Commit 8d3c195

Browse files
committed
mention sigilless variables and 'is raw' for binding
1 parent 15957e1 commit 8d3c195

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/Language/containers.pod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ changes the contents of the other.
123123
You've seen this situation before: it is exactly what happened with the
124124
signature parameter marked as C<is rw>.
125125
126+
Sigilless variabes also bind by default and so do parameters with the trait C<is raw>.
127+
128+
my $a = 42;
129+
my \b = $a;
130+
b++;
131+
say $a; # 43
132+
133+
sub f($c is raw) { $c++ }
134+
f($a);
135+
say $a; # 44
136+
126137
=head2 Scalar containers and listy things
127138
128139
There are a number of positional container types with slightly different

0 commit comments

Comments
 (0)