Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Write a cgi program to show the header part?

979


What does cgi program store?

921


How do you give functions private variables that retain their values between calls?

948


Explain ivalue in perl?

983


Comment on the scope of variables in perl.

931


You want to read command-line arguements with perl. How would you do that?

899


What does delete function do in perl?

987


What is the syntax used in Perl grep function?

1040


Who created perl?

919


How to connect with sqlserver from perl and how to display database table info?

954


Write the program to process a list of numbers.

993


Explain use of ‘my’ keyword in perl?

937


What is epoch time in perl?

938


What is perl programming?

1026


In CPAN module, name an instance you use.

961