How do I print the number of unique occurrences of an element array and also print the percentage of the occurrences, like:
@data=(string1, string1, string1,string2,string2,string3);
print will be something like:
Number of entries 3(unique strings) it represents 50% of 6 occurrences.