S
Shea Martin
For doing case insensitive comparisons, I have been using
if str1.casecmp(str2)==0
puts 'equal'
else
puts 'not equal'
end
Is their a way to do this with simpler syntax?
~S
if str1.casecmp(str2)==0
puts 'equal'
else
puts 'not equal'
end
Is their a way to do this with simpler syntax?
~S