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...

How to count no of occurrence of a unique patterns in perl?

Answer Posted / shah faisal

($count)=$string =~ s/<pattern>/<pattern>/g;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show the process of spawning a child process

903


How to dereference a reference?

1037


What does a die() function do in perl?

1034


List the operator used in Perl?

1024


Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

1105


What is the main function of cookie server?

1150


What does localtime() do in perl?

1051


What is the function of virtual documents in cgi programs?

1013


What happens when you return a reference to a private variable?

1061


What interface used in PERL to connect to database? How do you connect to database in Perl?

1040


What does read () command do?

980


What is “grep” function in perl?

1070


Write a cgi program to show the header part?

1044


What is the difference between single (') and double (") quote in a string in perl?

1110


What do you mean by context of a subroutine?

1028