|
Perl 6
WITCH hat: Revision 1
Mnemonics"hat","disjunct","but not","upto"
-- Used when something "wears many hats" Used alone
^ Before a value, the upto operator (a Bartholomew Cubbins hat) Operators containing this character
~^ and +^ and ?^ An exclusive or bitwise operation (or an invert, if only one argument) When used inside regexes
^ Matches the start of a string Special Variables
Variable names starting with hats inside a pointy block or sub are placeholder variables As an adverbOther UsesMethod names starting with hats are metaclass methods Hyper operator and meta operator restrictionsOld, deprecated, or other language uses
^ was bitwise exclusive or in Perl 5. In Perl 6 that's ~^, +^, or ?^ for bitwise, and ^^ in logic. |