in reply to Finding One String in Another

oh yes i already noticed putting
return 0 if (length($word) > length($letters));
at the top would save me time in many instances. Since there's no way we could make $word out of $letters if $word is longer to start with...