Anyhow I'd prefer to use the reqular-expression match, as indicated by pzbagel.use strict; my $test="yes"; print "test=$test\n"; if ("\L$test" eq "yes") { # No need to L-case the constant print "yes\n"; }else{ print "no\n"; }
In reply to Re: Case insensitive string compare
by NetWallah
in thread Case insensitive string compare
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |