Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compare two strings for likeness regardless of capital letters...

Status
Not open for further replies.

spewn

Programmer
Joined
May 7, 2001
Messages
1,034
i'm comparing email addresses and need to compare the two even when someone may capitalize a part of the email address?

- g
 
Code:
if (lc $string1 eq lc $string2) {
   they match
}

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top