Or!!! Use the \L escape.
use strict; my $test="yes"; print "test=$test\n"; if ($test eq "\Lyes") { print "yes\n"; }else{ print "no\n"; }
In reply to Re: Case insensitive string compare
by diotalevi
in thread Case insensitive string compare
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |