in reply to Summing the elements of multiple arrays into a new array

without measuring lengths or worring about that...
(use a #12 hook for the void map...)
map { $sum += $_ } @foo, @bar;
or if you're not fi^H^Hgolfing:
use strict; my $sum = 0; my @foo = ( 2,4,6,8 ); my @bar = ( 200,400,600,800 ); foreach (@foo,@bar) { $sum += $_; }

--
Snazzy tagline here