$string = "1:00"; if (int ($string > 3)) { print "Yes true"; } else { print "Not true"; }