my ($low,$high) = (0,scalar(@$array)); # computes the length of the array and gives it to $high