how can i do an if statement to compare to variables, regardless of their case sensetivity.
Lets say i have $a = ABC and $b = Abc. I want a value of true that $a==$b
the easiest way is the force the value to either all caps or lowercase letters, but that may not be the baest way if you need the data to remain in its current condition.
$a =~ tr/a-z/A-Z/; #change all letters to CAPS
$a =~ tr/A-Z/a-z/; #change all letters to lower case
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.