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: <%-(-(-(-<
In reply to Re: Lagrange Polynomials in Perl
by AnomalousMonk
in thread Lagrange Polynomials in Perl
by Mascasc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |