Does $scalar = @array produce a scalar containing the size of the array?
Yes. But $point is a strange name for the size of an array!
If that is meant to be short for $lastPoint, it is still deceptive as with zero-based arrays, the index of the last point in the array is one less than the size of the array.
(Which incidentally, can be obtained using my $lastPoint = $#array;)
In reply to Re^3: Lagrange Polynomials in Perl
by BrowserUk
in thread Lagrange Polynomials in Perl
by Mascasc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |