- 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.
- JavaScript從入門到精通(微視頻精編版)
- Apache Oozie Essentials
- Learning Cython Programming(Second Edition)
- Windows Forensics Cookbook
- PhoneGap Mobile Application Development Cookbook
- 名師講壇:Spring實(shí)戰(zhàn)開發(fā)(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Spring+Spring MVC+MyBatis整合開發(fā)實(shí)戰(zhàn)
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)習(xí)題解答與上機(jī)指導(dǎo)(第三版)
- Asynchronous Android Programming(Second Edition)
- Access 2010中文版項(xiàng)目教程
- 零基礎(chǔ)學(xué)HTML+CSS第2版
- Deep Learning for Natural Language Processing
- Web前端開發(fā)最佳實(shí)踐
- 計(jì)算機(jī)系統(tǒng)解密:從理解計(jì)算機(jī)到編寫高效代碼
- C語言程序設(shè)計(jì)教程