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
What is use of ‘->’ symbol?
What is an interpolation in perl?
how to connect cisco switch uisng perl script
You want to connect to sql server through perl. How would you do that?
Why aren't Perl's patterns regular expressions?
Which operator in perl is used for the concatenation of two strings?
Difference between the variables in which chomp function work ?
What is chomp() operator/function?
How will you access an element of a perl array?
what is Chop & Chomp function does?
Give an example of the -i and 0s option usage.
How to copy a file in perl?
Can you add two arrays together?
Explain perl. When do you use perl for programming?
Does Perl have objects? If yes, then does it force you to use objects? If no, then why?