- Perl 6 Deep Dive
- Andrew Shitov
- 174字
- 2021-07-03 00:05:49
Using simple built-in data types
Perl 6 comes with a number of various built-in types that cover the common range of things, such as Booleans, integers, and strings, but also offers unusual data types. We will cover them in this section. To demonstrate the built-in types, we will print them to the console using the say function, as we did in the ‘Hello, World!’ example.

The hierarchy is built using two types of items: roles and classes. Roles are drawn in ovals, while classes are rectangle boxes. Roles are similar to interfaces in some programming languages. In this chapter, we won't focus on the details of what is a role or a class. You can learn that in detail in Chapter 8, Object-Oriented Programming. For now, we will assume that you have some basic understanding of object-oriented programming and will be able to understand the hierarchy of the data types.
In the following sections of this chapter, we will go through the main data types that you may use in your practice.
- 程序員面試白皮書
- 數據庫原理及應用(Access版)第3版
- Java Web應用開發技術與案例教程(第2版)
- Oracle Database 12c Security Cookbook
- Reactive Android Programming
- Getting Started with NativeScript
- Python編程:從入門到實踐
- 用戶體驗可視化指南
- Essential C++(中文版)
- Spring 5 Design Patterns
- 大學計算機基礎
- 從0到1:HTML5 Canvas動畫開發
- Learning Concurrency in Python
- SQL Server實例教程(2008版)
- ANSYS FLUENT 16.0超級學習手冊