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 / ramya

while ($string =~ /<pattern>/g) { $count++ }

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does `$result = f() .. g()' really return?

1199


There are some duplicate entries in an array and you want to remove them. How would you do that?

911


explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.

868


What are the functions that can be performed using cgi program?

934


Explain the various characteristics of perl.

955


What does the q{ } operator do?

903


For a situation in programming, how can you determine that Perl is a suitable?

900


Explain a tell function in perl?

964


What is the main function of cookie server?

1083


How to deleting an existing file in perl programming?

905


Explain lists ?

936


You want to add two arrays together. How would you do that?

881


What are the different ways to run cgi?

960


What are the logical operators used for small scale operations?

959


What does the qx{ } operator do?

913