On Thu, 30 Aug 2001, Rory O'Connor wrote:
> I am comapring e-mail addesses in this fashion:
>
> if ($email eq $name_list[10]) { whatever }
>
> but i just realized that the email address can be the same but the case
> different and it won't match. How can I ignore the case for the purpose
> of comparison?
Convert everything to the same case:
if (lc($email) eq lc($name_list[10])) { whatever }
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
"If the code and the comments disagree, then both are probably wrong."
-- Norm Schryer
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]