Re: Match the first 3 characters of 2 words?

2003-12-11 Thread Boris Zentner
Hi, Am Mittwoch, 10. Dezember 2003 21:19 schrieb Rod: > What is the easiest way to test the first 3 characters of two words for > a match. > > IE: "dasf" test "dasg" to return positive. > > > rod. # return true, if the words differ return unpack( "%32C3", $w1 ^ $w2 ); -- Boris -- To unsubscr

RE: Match the first 3 characters of 2 words?

2003-12-10 Thread Bob Showalter
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]

RE: Match the first 3 characters of 2 words?

2003-12-10 Thread Tom Kinzer
perldoc -f substr would be one way. "easiest" is a loaded word, depends on the context and the individual... -Tom Kinzer -Original Message- From: Rod [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:19 PM To: '[EMAIL PROTECTED]' Subject: Match the first 3 characters of 2

Re: Match the first 3 characters of 2 words?

2003-12-10 Thread James Edward Gray II
On Dec 10, 2003, at 2:19 PM, 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("dasf", 0, 3) eq substr("dasg", 0, 3) James -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Match the first 3 characters of 2 words?

2003-12-10 Thread Mark Anderson
Response at end of message... -Original Message- From: Rod [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:19 PM To: '[EMAIL PROTECTED]' Subject: Match the first 3 characters of 2 words? What is the easiest way to test the first 3 characters of two words for a match. IE