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

What are the reasons that cookie server can’t handle multiple connections?

944


List the operator used in Perl?

969


Which functions in Perl allows you to include a module file or a module and what is the difference between them?

995


Explain socket programming in perl?

906


Explain the use of 'my' keyword in perl?

1005


How do you turn on the perl warnings?

914


What is use of ‘->’ symbol?

1001


How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

2894


What is the importance of perl warnings? How do you turn them on?

1033


Create a function that is only available inside the scope where it is defined ?

984


What is the closure in PERL?

1013


What are the steps involved when the cgi program starts running?

908


How and what are closures implemented in perl?

878


How do I read command-line arguments with Perl?

1011


How to convert arrays into a string in perl?

932