Hi all,
I have a question about the arrow operator, I understand the definition of ->, but I didn't know how to interpret "return $a->X*$b->X+$a->Y*$b->Y+$a->Z*$b->Z" in following code.
sub InProduct(){ my($a, $b) = @_; return $a->X*$b->X+$a->Y*$b->Y+$a->Z*$b->Z}
Thanks!
Have a good day.
Winston
2017-08-29 Athanasius added code and paragraph tags
In reply to about the application of arrow operator by windcrazy86
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |