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
How to create a package?
Explain perl one-liner?
What does the q{ } operator do?
Can you add two arrays together?
How to change a directory in perl?
What are the arguments and what do they mean in perl programming?
What are perl array functions?
what is Polymorphism in Perl?
How to open and read data files with Perl
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
What does delete function do in perl?
What is epoch time in perl?
How will you get the count of parameters passed to a perl subroutine?
How to replace perl array elements?
Differentiate between c++ and perl.