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
What does `$result = f() .. g()' really return?
There are some duplicate entries in an array and you want to remove them. How would you do that?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
What are the functions that can be performed using cgi program?
Explain the various characteristics of perl.
What does the q{ } operator do?
For a situation in programming, how can you determine that Perl is a suitable?
Explain a tell function in perl?
What is the main function of cookie server?
How to deleting an existing file in perl programming?
Explain lists ?
You want to add two arrays together. How would you do that?
What are the different ways to run cgi?
What are the logical operators used for small scale operations?
What does the qx{ } operator do?