sub second { my $num_ref = shift; my @copy_of = @$num_ref; push(@copy_of, 6); my $sum = 0; foreach (@copy_of) { $sum += $_; } return $sum; }