Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: string comparisions ignoring case? Message-ID: <9842@jpl-devvax.JPL.NASA.GOV> Date: 6 Oct 90 03:51:43 GMT References: <21932@fs2.NISC.SRI.COM> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 11 In article <21932@fs2.NISC.SRI.COM> cwilson@NISC.SRI.COM (Chan Wilson [Animal]) writes: : : Any way to do string comparisions that ignore case gracefully? The : only solution I can think of at the moment involves using some : temporary variables... ick. Howbout something like '$foo eqi $bar' ? If your $bar contains only alpha characters, you can just say $foo =~ /^$bar$/i; Larry