Mostly Harmless Docs/Context

Perl 6 still makes use of context, but expands upon it. Moritz’s Contexts article contains more info. For now, we’ll just note that you can force a given context on a given expression by prefixing it like so:

Context prefixins (credit: moritz)
prefix context
~foo string
?foo boolean (True or False)
+foo numerical
-foo numerical (but also negates)
$(foo) generic item context
@(foo) list context
%(foo) hash context
@@(foo) slice context

Main | Next: Numbers