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
Can inheritance be used in perl? Explain with the help of an example.
What are the different instances used in cgi overhead?
What are scalar data and scalar variables?
Why do we use "use strict" in perl?
What are stdin, stdout and stderr?
What are the reasons that cookie server can’t handle multiple connections?
Which guidelines by Perl modules must be followed?
What is the difference between localtime() and gmtime() functions?
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 ?
Differentiate use and require?
How can arrays be tied?
What is it meants by '$_'?
What are numeric operators in perl?
What is the difference between perl array and perl hash?
Explain perl.