|
Perl 6
WITCH colon: Revision 2
Mnemonics
"pair", "name", "imposter", "aspect", "ditto", "mirror" Used alone
: is essentially the sigil for Pair objects Operators containing this character
:: sigil and nesting separator for packages (and consequently, types) When used inside regexes
: can apply adverbs (a.k.a. modifiers, like :i) to individual parts rather than the whole expression Special Variables:: may often be seen after sigils with other special symbols but is only for scoping. Look in this section on the other characters' pages. As an adverb
: introduces an adverbial Pair constructor which includes also radix in literal numbers. Other Uses
: after a parameter name in a Signature names the invocant Old, deprecated, or other language uses
? : the ternary operator from perl5 and other languages is ?? !! in perl6 |