Array.pm

Summary
Array.pm
BE4::ArrayProvides functions to compute the max value or the min index of an array.
Index returning functions
minArrayIndex
Value returning functions
maxArrayValue

BE4::Array

Exporter
BE4::Array

Provides functions to compute the max value or the min index of an array.  Do not instanciate.

Using

my @array = (1,3,5,9);
my $minIndex = BE4::Array::minArrayIndex(@array); # return 0
my $maxArrayValue = BE4::Array::maxArrayValue($array); # return 9

Index returning functions

minArrayIndex

sub minArrayIndex

Parameters (list)

firstinteger - Indice from which minimum is looked for.
arraynumbers array -

Returns

An integer, indice of the smaller element in a array, begining with the element ‘first’

Value returning functions

maxArrayValue

sub maxArrayValue

Parameters

firstinteger - Indice from which maximum is looked for.
arraynumbers (floats or integers) array

Returns

The greater value in a array, begining with the element ‘first’

sub minArrayIndex
sub maxArrayValue
Close