print "Enter a word: \n"; chomp($string1 = <STDIN>); $string2 = 'Mahesh'; if($string1 eq $string2){ print "Match \n"; } else { print "Does not match \n"; }
In reply to Re: Comparing Strings
by Anonymous Monk
in thread Comparing Strings
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |