foreach my $a(@bar) { my $foo = &return_something($a); } #### ($v1, $v2, $vX) = (0, 0, 0);