Perl Assignment P3
N.B. These exercises come from Learning Perl.
- Write a program that reads a list of strings on separate lines and
prints out the list in reverse order. If you're reading the list
from the keyboard, remember that you'll indicate you're done
entering items by typing ctl-D.
- Write a program that reads a series of words with one word
per line until end-of-file, then prints each word with a count
of how often it was seen. For an extra challenge, sort the
words in ascending ASCII order (i.e. alphabetically) in the
output -- see
documentation of the 'sort' function.