Write a script for 'count the no.of digits using regular
expressions in perl..
Answer Posted / santha
$testnumber='34535sssss24';
$numbercount=0;
while($testnumber=~m{\d}igs)
{
$numbercount++;
}
print "\n $numbercount";
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Explain subroutine?
Explain grooving and shortening of arrays and splicing of arrays?
Explain about typeglobs?
What does `$result = f() .. g()' really return?
Explain the meaning of closure in perl.
How to do comment in perl?
How to concatenate strings with perl?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
What is -> symbol in perl?
How to dereference a reference?
Which guidelines by Perl modules must be followed?
How are parameters passed to subroutines in perl?
How many types of variable in perl?
You want to connect to sql server through perl. How would you do that?
what is CPAN?