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 cgi program to show the header part?
What does cgi program store?
How do you give functions private variables that retain their values between calls?
Explain ivalue in perl?
Comment on the scope of variables in perl.
You want to read command-line arguements with perl. How would you do that?
What does delete function do in perl?
What is the syntax used in Perl grep function?
Who created perl?
How to connect with sqlserver from perl and how to display database table info?
Write the program to process a list of numbers.
Explain use of ‘my’ keyword in perl?
What is epoch time in perl?
What is perl programming?
In CPAN module, name an instance you use.