The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Array::Average - Calculates the average of the values passed to the function.

SYNOPSIS

use Array::Average;
print average(4,5,6);

DESCRIPTION

Array::Average is an Exporter which exports exactly one function called average.

USAGE

use Array::Average;
print average(4,5,6);

use Array::Average qw{};
print Array::Average::average(4,5,6);

FUNCTIONS

average

Returns the average of all defined scalars and objects which overload "+".

my $average=average(1,2,3);
my $average=average([1,2,3]);
my $average=average({a=>1,b=>2,c=>3}); #only values not keys

BUGS

Please log on RT and send an email to the author.

SUPPORT

DavisNetworks.com supports all Perl applications including this package.

AUTHOR

Michael R. Davis
CPAN ID: MRDVT
Satellite Tracking of People, LLC
mdavis@stopllc.com
http://www.stopllc.com/

COPYRIGHT

This program is free software licensed under the...

The BSD License

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

Data::Average