If you only need things to be the same case for the comparison, then you can use uc or lc to force your strings to be upper or lower.
if ( uc($str) eq uc($something) ) { # ... }
Alternately, and if you need care about the original case, you can reassign $str to an upper- or lowercased version of itself before you do anything else.
$str = uc($str); # force uppercase
--k.
In reply to Re: Comparing lower to upper case
by Kanji
in thread Comparing lower to upper case
by bobothesmart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |