$a = 234234; print scalar(()= $a =~ /\d/g); __END__ 6 [download]
In reply to Re: count digit in a numeric value by johnnywang in thread count digit in a numeric value by wusphere