官术网_书友最值得收藏!

Summary

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.

主站蜘蛛池模板: 江门市| 汶上县| 涿鹿县| 道真| 班玛县| 枣阳市| 石景山区| 康马县| 福建省| 波密县| 长治市| 南康市| 万源市| 赤城县| 河源市| 滦南县| 开鲁县| 咸宁市| 丰都县| 获嘉县| 无为县| 宜春市| 抚松县| 安吉县| 蓬莱市| 柳江县| 咸丰县| 雅江县| 当阳市| 哈尔滨市| 明光市| 共和县| 界首市| 昂仁县| 济源市| 昔阳县| 澄迈县| 永嘉县| 泾阳县| 天门市| 科尔|