File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,17 +71,19 @@ These forms produce regex literals. See L<Quoting Constructs|/language/quoting>.
71
71
:identifier($value)
72
72
:identifier['val1', 'val2']
73
73
:identifier{key1 => 'val1', key2 => 'value2'}
74
+ :valueidentifier
74
75
:$item
75
76
:@array
76
77
:%hash
77
78
:&callable
78
79
79
80
L < Pair > objects can be created either with C << infix:«=>» >> (which
80
81
auto-quotes the left-hand side if it is an identifier), or with the various
81
- colon-pair forms. Those always start with a colon and then are followed
82
+ colon-pair forms. Those almost always start with a colon and then are followed
82
83
either by an identifier or the name of an already existing variable (whose
83
84
name without the sigil is used as the key and value of the variable is used
84
- as the value of the pair).
85
+ as the value of the pair). There is a special form where an integer value
86
+ is immediately after the colon and the key is immediately after the value.
85
87
86
88
In the identifier form of a colon-pair, the optional value can be any
87
89
circumfix. If it is left blank, the value is C < Bool::True > . The value of
You can’t perform that action at this time.
0 commit comments