Download english.sorted.txt to your perl exercises folder. The english.sorted.txt file contains a list of words of variable length. Write perlex1.pl to find the number of occurrences of each word length in english.sorted.txt. That is, find and print the number of words in english.sorted.txt that are one character long, two characters long, three characters long and so on.
Sample output:
Word length Occurrences 1 27 2 104 3 1038 4 3501 5 7179 6 11758 7 15892 ... ...