String comperison operator: equal : Compare « String « Perl






String comperison operator: equal

   

#!/usr/bin/perl -w 

print "Test one: ", "four" eq "six", "\n";
print "Test two: ", "four" == "six", "\n";

   
    
    
  








Related examples in the same category

1.Compare two words with cmp
2.Comparing Strings
3.String comperison operator: cmp
4.String comperison operator: gt (greater than)
5.String comperison operator: lt (less than)
6.The correct use of three of the operators: eq, it, and gt.
7.A very simple password checker.
8.Check password