String comperison operator: gt (greater than) : Compare « String « Perl






String comperison operator: gt (greater than)

   

#!/usr/bin/perl -w

print "dog" gt "cat", "\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: equal
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