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
Write a script to reverse a string without using perl's built in functions?
List the prefix dereferencer in Perl.
Explain perl. What are the advantages of programming in perl?
Define perl scripting?
What is hash?
Give an example of the -i and 0s option usage.
How to code in perl to implement the tail function in unix?
What syntax is used for grep() function?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?
What is the main function of cookie server?
Why to use perl scripting?
what is CPAN?
Explain USE and REQUIREMENT statements?
Which guidelines by Perl modules must be followed?
What are the advantages of perl programming?