OK. I think I moved further.

So this is my library.

ub sumIt(){
   @functionArray = @_;
   foreach $line(@functionArray){
   $functionSum += $line;
   }
   return $functionSum;
}

1;

What do I add here to calculate the average of the numbers?

thanks

Amichai

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to