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
Which of these is a difference between Perl and C++ ?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
How and what are closures implemented in perl?
What is the difference between localtime() and gmtime() functions?
Give an example of using the -n and -p option.
Write a program that shows the distinction between child and parent process?
Explain a tell function in perl?
Is there any way to add two arrays together?
When do you use perl programming?
What are the purpose of close(), getc() and read() functions?
How many types of variable in perl?
In CPAN module, name an instance you use.
What is a chop() function in perl?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
Demonstrate subroutines in perl with a simple example.