Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; my $test="yes"; print "test=$test\n"; if ($test eq /yes/i) { print "yes\n"; }else{ print "no\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Case insensitive string compare
by pzbagel (Chaplain) on Aug 09, 2003 at 04:52 UTC | |
|
Re: Case insensitive string compare
by Kanji (Parson) on Aug 09, 2003 at 05:13 UTC | |
|
Re: Case insensitive string compare
by diotalevi (Canon) on Aug 09, 2003 at 13:07 UTC | |
|
Re: Case insensitive string compare
by NetWallah (Canon) on Aug 09, 2003 at 16:23 UTC |