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

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.

主站蜘蛛池模板: 清水河县| 建始县| 竹溪县| 同德县| 齐齐哈尔市| 周口市| 天等县| 沾益县| 屯门区| 红河县| 布拖县| 扶沟县| 黔西| 长顺县| 清丰县| 十堰市| 湖南省| 棋牌| 彰化县| 九寨沟县| 四川省| 承德市| 且末县| 东方市| 义乌市| 达日县| 淮滨县| 格尔木市| 常德市| 乌海市| 永州市| 金塔县| 新闻| 泰来县| 新龙县| 华亭县| 枞阳县| 信阳市| 奉节县| 文水县| 荃湾区|