What is a hash?

Answer Posted / sam

Hash is a specific datatype in PERL and it contains KEYS
and VALUES. Values are referred with the help of keys.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I replace every character in a file with a comma?

533


Explain the meaning of closure in perl.

528


Explain 'grep' function.

544


How to find the length of an array in perl?

565


How do you set environment variables in perl?

558






Define dynamic scoping.

508


What are perl variables?

528


How do I sort a hash by the hash key?

571


How do I print the entire contents of an array with Perl?

532


What is the difference between perl list and perl array?

471


What can be done for efficient parameter passing in perl? Explain.

563


What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)

546


What are the purpose of close(), getc() and read() functions?

484


“Perl regular expressions match the longest string possible”. What is the name of this match?

530


What are the logical operators used for small scale operations?

548