use strict; my $var = "xyz"; print "it's a single-digit number!!\n" if $var < 10;