in reply to extract number of times a value appears in an array
my @array = (1,3,3,3,5,5,5,5); my @array = (1,3,3,5,5,5,5,3); [download]