Hello all, I am hoping someone could give me some pointers. As a way of trying to learn Perl, I decided to write a word game for my son. I am having problems will how to deal with one aspect of it. I want to be able to compare the letters (and how often they occur) that make up the first word are present in the second. For example 'dog' compared with 'good' would return true, 'food' compared with 'fodder' would return false as there is only one 'o'. I am thinking that maybe I could convert each scalar into an array and then compare each element in turn, is this possible?
Any help would be gratefully received.
Thank you in advance