I'm trying to count digits in a scalar
Perhaps you could use tr///, see Quote Like Operators.
johngg@shiraz:~/perl/Monks$ perl -E '$_ = q{1223w3433.45+34}; say tr{0 +-9}{};' 12
I hope this is of interest.
Cheers,
JohnGG
In reply to Re: Some odd ambiguity in this regex
by johngg
in thread Some odd ambiguity in this regex
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |