- 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.
- Qt 5 and OpenCV 4 Computer Vision Projects
- Docker and Kubernetes for Java Developers
- Python數據分析基礎
- PostgreSQL技術內幕:事務處理深度探索
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- Python數據分析從0到1
- 網站構建技術
- Swift細致入門與最佳實踐
- Cybersecurity Attacks:Red Team Strategies
- MySQL 8從零開始學(視頻教學版)
- Angular Design Patterns
- Mastering PowerCLI
- Java程序設計實用教程(第2版)
- LabVIEW入門與實戰開發100例(第4版)
- Kotlin語言實例精解