Rod wrote:
> What is the easiest way to test the first 3 characters of two words
> for a match.
> 
> IE:  "dasf" test "dasg" to return positive.

  substr($word1, 0, 3) eq substr($word2, 0, 3)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to