|
Perl 6
WITCH star: Revision 1
^ Mnemonics
"splat", "dont care", "whatever" -- used when you do not care or want a sensible "largest default" ---- ^ Used alone {{*}} can be used like you always have, for multiplication {{*}} immediately before an identifier name denotes a "global"<http://perlcabal.org/syn/S02.html#Names_and_Variables>, including builtin special variables (which are global.) {{*}} just about anywhere else, is means "whatever"<http://perlcabal.org/syn/S02.html#Built-In_Data_Types> {{*}} within a version number functions as a wildcard ^ Operators containing this character {{*=}} mutant assignment form of multiplication {{** and **=}} can be used like you always have, for exponentiation {{**}} just about anywhere else is a multidimensional whatever (see above) {{.*}} "calls all methods"<http://perlcabal.org/syn/S03.html#Method_postfix_precedence> if there are duplicate method names {{[*-1]}} as an array index not special syntax but is legal use of "whatever" to get at the last element of an array. ^ When used inside regexes {{* and *?}} as a "0 or more" repeat count ^ Special Variables ^ As an adverb ^ Other Uses ^ Hyper operator and meta operator restrictions ^ Old, deprecated, or other language uses |