I'm reading some Perl documentation. I noticed that "=" is not expressed as "equals" but as "or". For example:
Perl provides the typical ordinary addition, subtraction, multiplication, and division operators, and so on. For example:
2 + 3 # 2 plus 3, or 5
5.1 – 2.4 # 5.1 minus 2.4, or 2.7
3 * 12 # 3 times 12 = 36
14 / 2 # 14 divided by 2, or 7
Why are they using "or" to express "equals"? Is this common in mathematics?
Note that the '#' symbol means everything after it is a comment. I'm only querying on the explanation of equal, not discussing Perl here, however if you're interested in that you may find the original e-book from here to take a deep reference: http://it-ebooks.info/book/361/
+on constant items (like magic numbers) at compile time, so it really doesn't matter much if the code says2 + 3or5. It just gets calculated and optimzed out once, as opposed to calculating with variables, which happens at runtime. – simbabque Sep 08 '15 at 11:30ormeansthat isorwhich is. – technophyle Sep 10 '15 at 09:26