in reply to Lagrange Polynomials in Perl
And, of course, the obligatory NB about C-style for- or foreach-loops versus Perl-style: IMHO, the loops in the OPed code are better as:
my $arrayref = ...; for my $i (0 .. $#$arrayref) { for my $j (0 .. $#$arrayref) { do_something_with($i, $j); } }
Give a man a fish: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Lagrange Polynomials in Perl
by Mascasc (Novice) on Apr 29, 2015 at 14:29 UTC |