On Tue, 2002-12-03 at 13:26, SATAR VAFAPOOR wrote: > 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.
Simplest way is to convert both to lower case, using lc: if (lc($x) eq lc($y)){ # do something } -- Nigel Wetters, Senior Programmer, Development Group Rivals Digital Media Ltd, 151 Freston Road, London W10 6TH Tel. 020 8962 1346 (direct line), Fax. 020 8962 1311 PGP keyserver: pgp.mit.edu <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]