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

Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

466


Is perl a case sensitive language?

634


How do I sort a hash by the hash value?

557


You want to concatenate strings with perl. How would you do that?

478


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

1997






What does file test operators do in perl?

506


How do I do fill_in_the_blank for each file in a directory?

546


How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

2495


How to replace perl array elements?

528


How do you find the length of an array?

554


Differentiate use and require?

527


What are the steps involved in configuring a server using cgi programming?

481


There are some duplicate entries in an array and you want to remove them. How would you do that?

499


What is perl I used for?

531


Explain use of ‘my’ keyword in perl?

575