Answer Posted / bhavani
Hash is an associative array where data is stored in
"key"->"value" pairs.
Eg : fruits is a hash having their names and price
%fruits = ("Apple", "60", "Banana", "20", "Peers", "40");
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Explain goto expr?
How to read a directory in perl?
Explain lists in perl?
Explain the various characteristics of perl.
What does cgi program store?
What is a chomp() function in perl?
What is the importance of perl warnings?
What is use of ‘->’ symbol?
How to create a package?
What does perl do in linux?
Explain chomp, chop, cpan, tk.
Write a cgi program to show the header part?
How will you get the count of parameters passed to a perl subroutine?
How can information be put into hashes?
how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.