In this chapter, we looked at an overview of the built-in data types in Perl 6 and learned how to work with variables. The most important fact is that variables in Perl 6 are instances of the different built-in data type classes. The details of those classes are located in Chapter 8, Object-Oriented Programming, but some elements of the object-oriented programming are needed to successfully create and use variables in Perl 6.
In the first part of the chapter, you learned three structural types of variable containers—scalars, arrays, and hashes—, and examined their main methods. In the second part, we took an in-depth look at different data types, such as integer, rational, floating-point numbers, strings, dates, and times.
In the next chapter, we will continue with observing the flow control in Perl 6 programs.