View Single Post
Old 09-16-2005, 04:28 PM   #2 (permalink)
sarg
Junior Member
 
Join Date: Jul 2005
Posts: 14
Default

Give this a try:
PHP Code:
my @array = (.. 10);
my $total 0;
(
$total+=$_) for @array;
print 
$total

hope it helps
sarg is offline   Reply With Quote
Sponsored Links