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 are the two ways to get private values inside a subroutine?
What are prefix dereferencer? List them.
Mention how many ways you can express string in Perl?
What are numeric operators in perl?
What is q (single q) operator in perl?
What is the use of -n and -p options?
How to code in perl to implement the tail function in unix?
Write syntax to use grep function?
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
Explain USE and REQUIREMENT statements?
How would you ensure the re-use and maximum readability of your perl code?
How do I generate a list of all .html files in a directory?
Define operators used in perl?
Explain cpan?
Differentiate use and require?