Re: Perl calculate and average problem
- From: "ed" <eklosterman@xxxxxxxxxxx>
- Date: 30 Sep 2005 04:37:30 -0700
Well here is what I have so far:
@params = (1,2,3,4,5,7,8,9);
foreach $digits(@params){
$total = numbers($digits);
print "$numbers\n";
}
sub numbers (){
my $digits = shift(@_);
foreach $params(@params){
$digits =+ @params;
}
return $total
}
I can't get the average of the array to even get to the other part of
the code to divide the total.
.
- Follow-Ups:
- Re: Perl calculate and average problem
- From: Josef Moellers
- Re: Perl calculate and average problem
- Prev by Date: Re: hex-array print
- Next by Date: Re: protect calling files directly?
- Previous by thread: FAQ 4.62 Why don't my tied hashes make the defined/exists distinction?
- Next by thread: Re: Perl calculate and average problem
- Index(es):
Relevant Pages
|
|