in reply to Can i do math with the elements of an array?
my @z = ( 30, 18, 54, 24, 88 );
my $sum = $z + $z;
print $sum, "\n"; # Prints "42"
www.com | www.net | www.org
A scientific project
A system/database administration tool
A toy/personal tool
Other web based tool
None of the above
Results (77 votes). Check out past polls.