- Perl 6 Deep Dive
- Andrew Shitov
- 183字
- 2021-07-03 00:05:55
Operator classification
First, let's remind ourselves of some of the basic terminology that we need when talking about operators. Consider a simple example:
my $a = 10;
my $b = 20;
my $c = 0;
$c = $a + $b;
say $c; # 30
Let's concentrate on the following line of code:
$c = $a + $b;
Here, we tell the compiler to perform two actions—first, calculate the sum of the $a and $b variables, and second, assign the result to the third variable, that is, $c. There are two operators in this example—+ and =. Operators are presented by their one-character names. In this case, the names are chosen to copy the corresponding operators in mathematics. Later, we will see examples of other operators, which are not just a character. They can be, for example, a sequence of two or three non-alphabetical symbols, such as >= or <= operators. Or, they can be a string identifier, for example—cmp or eq.
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- JavaScript高效圖形編程
- GeoServer Cookbook
- Learn to Create WordPress Themes by Building 5 Projects
- Mastering OpenCV Android Application Programming
- Lua程序設計(第4版)
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Responsive Web Design by Example
- 匯編語言編程基礎:基于LoongArch
- PHP與MySQL權威指南
- RocketMQ實戰與原理解析
- Java 9 with JShell
- 分布式數據庫HBase案例教程
- Flask開發Web搜索引擎入門與實戰
- VMware vSphere Design Essentials