use List::Util qw[ reduce ]; my @a = 2..6; print reduce{ $a*=$b } @a; 720
In reply to Re: Multiplying together the numers in an array
by BrowserUk
in thread Multiplying together the numers in an array
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |