@@ -173,6 +173,7 @@ only depends on the C<$>.
173
173
= end table
174
174
175
175
= head2 The C < * > Twigil
176
+ X < |$* >
176
177
177
178
Dynamic variables are looked up through the caller, not through the outer
178
179
scope. For example:
@@ -232,6 +233,7 @@ boolean context before using it for anything else:
232
233
233
234
234
235
= head2 The C < ! > Twigil
236
+ X < |$! >
235
237
236
238
Attributes are variables that exist per instance of a class. They may be
237
239
directly accessed from within the class via C < ! > :
@@ -255,6 +257,7 @@ you though. For more details on objects, classes and their attributes see
255
257
L < object orientation|/language/objects > .
256
258
257
259
= head2 The C < ? > Twigil
260
+ X < |$? >
258
261
259
262
Compile-time variables may be addressed via the C < ? > twigil. They are known
260
263
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
273
276
L < compile-time variables|/language/variables#Compile-time_variables > .
274
277
275
278
= head2 The C < . > Twigil
279
+ X < |$. >
276
280
277
281
The C < . > twigil isn't really for variables at all. In fact, something along
278
282
the lines of
@@ -315,6 +319,7 @@ match variable. For more information about the match variable see L<$/> and
315
319
L < type Match|/type/Match > .
316
320
317
321
= head2 The C < ^ > Twigil
322
+ X < |$^ >
318
323
319
324
The C < ^ > twigil declares a formal positional parameter to blocks or
320
325
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
355
360
some Perl 5-isms.
356
361
357
362
= head2 The C < : > Twigil
363
+ X < |$: >
358
364
359
365
The C < : > twigil declares a formal named parameter to a block or subroutine.
360
366
Variables declared using this form are a type of placeholder variable too.
@@ -370,6 +376,7 @@ Will print "C<-1>".
370
376
See L < ^ > for more details about placeholder variables.
371
377
372
378
= head2 The C < = > Twigil
379
+ X < |$= >
373
380
374
381
The C < = > twigil is used to access Pod variables. Every Pod block in the
375
382
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
391
398
C < Associative > roles.
392
399
393
400
= head2 The C < ~ > Twigil
401
+ X < |$~ >
394
402
395
403
Note: Slangs are L < NYI|/language/glossary#NYI > in Rakudo.
396
404
0 commit comments