$str=123; $fu = length($str); print $fu,"\n";
I know, it's not what you asked, just trying to complicate things needlessly:)perl -e '$str="fff123"; $fu = ($str =~ tr/[a-z]//c); print $fu,"\n";'
In reply to Re: count digit in a numeric value
by hsinclai
in thread count digit in a numeric value
by wusphere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |