%charnames = ( '?' => 'question mark', '.' => 'fullstop', ',' => 'comma', # and so on ); #### print ("$charnames{$punctuation}\t$count\n");