in reply to Re: Challenge: prefix($x, $y) . suffix($x, $z) eq $x
in thread Challenge: prefix($x, $y) . suffix($x, $z) eq $x

FunkyMonk,
I believe this code is flawed in that it violates two of the rules.

Changing the players for a dictionary file, I tried 'hello'. It produced the following:

h.ello PREFIX h: ha haberdasher ..... he head
Neither 'he' nor 'head' should be matched here because they share more than just 'h' in common with 'hello'. 'he' should be excluded because it consumes the entire word.

Cheers - L~R