in reply to Coffee time quiz

How about this:
print $word unless $word =~ /(.).*?\1/;

-- Dan