Hi,
This problem seems to be very easy but stiil I am having problem.I am reading a variable and then I am trying to vallidate that it's a two digit number and less than or equal to 10.But it's working for only the number which is 10.
here is the code.Please suggest something
if(($totalNumber =~ /^\d{2}$/){
if($totalNumber <= 10){
print "the number is less than 10\n";
}
}