The code you are showing is calculating the sum of products of the x y and z component of two vectors a and b.
The arrows have the highest precedence in this calculation, then the multiplication and last the addition.
See "algebraic definition" in http://en.wikipedia.org/wiki/Dot_product for mathematical background.
a1 is $a->X and so on. ..
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
</""sub>
In reply to Re: about the application of arrow operator
by LanX
in thread about the application of arrow operator
by windcrazy86
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |