How to count no of occurrence of a unique patterns in perl?
Answer Posted / shah faisal
($count)=$string =~ s/<pattern>/<pattern>/g;
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
Explain the meaning of closure in perl.
What is the usage of -i and 0s options?
What does last statement do in perl?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
Explain join function in perl?
In CPAN module, name an instance you use.
Explain the various characteristics of perl.
What does this symbol mean '->'?
What $! In perl?
what is Perl one liner?
Which has highest precedence in between list and terms? Explain?
Why do we use "use strict" in perl?
Mention the difference between die and exit in Perl?