write the subroutine
sub addem
{
my($first_num, $second_num)=@_; #grab the results of the default array
#before it gets changed.
#if you pass an @array, it must be the
#the last argument passed, or a greedy @array
#on the receiving end will eat it all, leaving
#nothing for subsequent vars in the list
#ex, ($var, @array) not (@array, $var)
#see p51
my($sum)= $first_num + $second_num;
return $sum;
# or just return ($first_num + $second_num);
}#end, addem
$total=&addem(4,5); #if passing strings use quotes
#or $total=&addem($some_num, $another_num);# already set values
#or $total=&addem(@nums); #already said that @nums=4, 5;