The canonic solution are 4 nested loops with an $sum += $c1*$c2*$c3*$c4 as the last step.
Feel free to demonstrate it.
like here: Re: adding n-tuples
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^2: adding n-tuples
by LanX
in thread adding n-tuples
by kwatts59
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |