What is a hash?

Answer Posted / shah faisal

Hash is an unordered pair of keys and values where keys
must be unique else the second duplicate keys replace the
value of first key. Hash is denoted by a "%" sign.
e.g.
"key1"->"value1","key2"->"value2",key1"=>"value3" then
final hash will be %hash=("key2"-
>"value2","key1"=>"value3");

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

547


How to close a file in perl?

493


What are the different string manipulation operators in perl?

533


Explain the functioning of conditional structures in perl.

468


How do I sort a hash by the hash value?

557






What is the difference between perl list and perl array?

470


What are perl array functions?

528


Write a program to show the process of spawning a child process

449


What is an interpolation in perl?

561


What is the difference between die and exit in perl?

572


Write a program to decode the data in the form using cgi programming

546


What does init 5 and init 0 do?

526


Explain the various characteristics of perl.

526


How to read a file into a hash array?

548


Explain '->' in perl?

504