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
Explain what is lvalue?
How to create a directory in perl?
What are scalars in perl?
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
What interface used in PERL to connect to database? How do you connect to database in Perl?
Write syntax to use grep function?
How many loop control keywords are there in perl?
What is warn function in perl?
what are the steps involved in reading a cgi script on the server?
What are the steps involved when the cgi program starts running?
What is perl dbi?
How will you create a file in perl?
How do you you check the return code of a command in perl?
When do you use perl programming?
How many types of operators are used in the Perl?