Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PERL counting words that are missing a vowel

Name: Anonymous 2011-06-04 16:02

Write a program called no_vowels.pl that will count
how many words DO NOT have an 'a' or an 'A',
how many DO NOT have an 'e' or an 'E',
how many DO NOT have an 'i' or an
'I', and so on.

The output should look like the below. 
Note that the letters must be listed in decreasing order of frequency

14000 words do not have an 'u'
11258 words do not have an 'o'
10123 words do not have an 'i'
11523 words do not have an 'a'
10111 words do not have an 'e'

Name: Anonymous 2011-06-08 5:37

>>43
yes that is clear to me that it sorts in a specific way.
but it is a hash. and a hash is key:value
so how do i say: pls use only the values for the comparsion and not the key.

Name: Anonymous 2011-06-08 5:41

>>43
sry i didnt understand at first.

ok so $hash($a) means use the values.
and how do i access the key?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List