Programming is about processing data, changing and synthesizing information in many different ways. And functions are applied directly to data, which is why we will not, for the time being, deal with any way of storing that data.
© J.J. Merelo 2019J. MereloPerl 6 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4956-7_6
6. Processing Complex Data Structures
How to Transform Data in Many Different Ways
J. J. Merelo1
Perl 6 is also object-oriented and functional. The first means that a method will be applied to data, and the way to apply it is simply by appending a period to the data structure (which might be surrounded with parentheses for convenience) and putting the name of the method behind, like so:
%( Óðinn => "Gungnir", ...