Or, you could:

if (lc $x eq lc $y) { ... }

lc changes to lower case.

Aloha => Beau.

-----Original Message-----
From: SATAR VAFAPOOR [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 3:27 AM
To: [EMAIL PROTECTED]
Subject: Case Insensitive



Hello all,

I want to make comaprisons in an if statement without caring about upper or
lower case eg $x='T'; $y='t'  if($x eq $y). can the i that is used in regex
be used here or is there another way. Thanks

Sattar



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to