Skip to content

Commit ef2afea

Browse files
committed
add complete twigils to index
1 parent 7b35964 commit ef2afea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/Language/variables.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ only depends on the C<$>.
173173
=end table
174174
175175
=head2 The C<*> Twigil
176+
X<|$*>
176177
177178
Dynamic variables are looked up through the caller, not through the outer
178179
scope. For example:
@@ -232,6 +233,7 @@ boolean context before using it for anything else:
232233
233234
234235
=head2 The C<!> Twigil
236+
X<|$!>
235237
236238
Attributes are variables that exist per instance of a class. They may be
237239
directly accessed from within the class via C<!>:
@@ -255,6 +257,7 @@ you though. For more details on objects, classes and their attributes see
255257
L<object orientation|/language/objects>.
256258
257259
=head2 The C<?> Twigil
260+
X<|$?>
258261
259262
Compile-time variables may be addressed via the C<?> twigil. They are known
260263
to the compiler and may not be modified after being compiled in. A popular
@@ -273,6 +276,7 @@ For a list of these special variables see
273276
L<compile-time variables|/language/variables#Compile-time_variables>.
274277
275278
=head2 The C<.> Twigil
279+
X<|$.>
276280
277281
The C<.> twigil isn't really for variables at all. In fact, something along
278282
the lines of
@@ -315,6 +319,7 @@ match variable. For more information about the match variable see L<$/> and
315319
L<type Match|/type/Match>.
316320
317321
=head2 The C<^> Twigil
322+
X<|$^>
318323
319324
The C<^> twigil declares a formal positional parameter to blocks or
320325
subroutines. Variables of the form C<$^variable> are a type of placeholder
@@ -355,6 +360,7 @@ upper-case letter. This is disallowed in favor of being to able to catch
355360
some Perl 5-isms.
356361
357362
=head2 The C<:> Twigil
363+
X<|$:>
358364
359365
The C<:> twigil declares a formal named parameter to a block or subroutine.
360366
Variables declared using this form are a type of placeholder variable too.
@@ -370,6 +376,7 @@ Will print "C<-1>".
370376
See L<^> for more details about placeholder variables.
371377
372378
=head2 The C<=> Twigil
379+
X<|$=>
373380
374381
The C<=> twigil is used to access Pod variables. Every Pod block in the
375382
current file can be accessed via a Pod object, such as C<$=data>,
@@ -391,6 +398,7 @@ Note that all those C<$=someBlockName> support the C<Positional> and the
391398
C<Associative> roles.
392399
393400
=head2 The C<~> Twigil
401+
X<|$~>
394402
395403
Note: Slangs are L<NYI|/language/glossary#NYI> in Rakudo.
396404

0 commit comments

Comments
 (0)