cwilson@NISC.SRI.COM (Chan Wilson [Animal]) (10/06/90)
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' ? --Chan Chan Wilson SRI Intl. Network Information Systems Center 333 Ravenswood Ave., EK289 Internet: cwilson@nisc.sri.com Menlo Park, CA., 94025 Phone: (415)859-4492 "If I want to be a surfer this month, I bloody well will be."
lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (10/06/90)
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