foreach my $val ( @large_array ) { push @another_array, $val * $number_from_stdin; }