What is a hash?

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


Please Help Members By Posting Answers For Below Questions

What is lexical variable in perl?

526


What is the use of "stderr()"?

573


Explain about typeglobs?

557


Mention the difference between die and exit in Perl?

661


How can you replace the characters from a string and save the number of replacements?

516






How many types of operators are used in the Perl?

585


How does a “grep” function perform?

602


Explain USE and REQUIREMENT statements?

564


What does -> symbol indicates in Perl?

572


What is the easiest way to download the contents of a URL with Perl?

565


What is the syntax used in Perl grep function?

597


What are prefix dereferencer? List them.

571


What is the purpose of redo statement?

531


You want to add two arrays together. How would you do that?

492


How and what are closures implemented in perl?

494