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

Is there any way to add two arrays together?

954


How to implement a stack in Perl?

996


Explain goto name?

920


How can you create anonymous subroutines?

899


What is the difference between perl list and perl array?

850


Explain what is perl language?

907


How to close a file in perl?

924


Explain chop?

900


How many ways can we express string in Perl?

946


what is Polymorphism in Perl?

947


Explain the various characteristics of perl.

933


How to read multi lines from a file in perl?

905


what is the function that is used to identify how many characters are there in a string?

948


What is cpan in perl?

939


Explain the meaning of subroutine?

955