Callables: Code, Blocks, and Routines
You have already seen in previous chapters how Perl 6, having functions as first class citizens, can produce chunks of code out of thin air and work with them. The title of this section lists the classes used for functions in increasing order of complexity. All of them are Callable; code is the simplest type that implements that role; blocks can define a signature or the name of the variables that will be used inside the code itself; a routine is a block that has its own name and can specify data that is going to ...