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

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.

主站蜘蛛池模板: 分宜县| 贡嘎县| 长兴县| 连平县| 石嘴山市| 通化市| 运城市| 大同市| 深泽县| 台东县| 保靖县| 布拖县| 江油市| 康保县| 五大连池市| 苏尼特左旗| 定襄县| 曲麻莱县| 剑阁县| 抚州市| 南岸区| 平阴县| 沈阳市| 蓬安县| 焉耆| 高要市| 佛坪县| 咸阳市| 周口市| 韶关市| 武川县| 日照市| 仁怀市| 南涧| 陈巴尔虎旗| 高唐县| 花垣县| 周口市| 桐城市| 广德县| 阿拉善右旗|