Re: ignoring case when comparing two vars

2001-08-30 Thread Brett W. McCoy
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 co

Re: ignoring case when comparing two vars

2001-08-30 Thread Wagner-David
Could wrap it in either a uc or lc like lc($email) eq lc($name_list[10]) or uc or use reg like $email=~ /^$name_list[10]$/i Wags ;) -Original Message- From: Rory O'Connor [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 14:59 To: [EMAIL PROTECTED] Subj