in reply to searching for strings
In the hash you store a list of matching strings.
When you have created the hash, you should iterate through it and check if the +1/-1 condition holds.
Perl 6 in German