Answer Posted / savitha sridhar
Hash or "Associative Array" is an unordered list of scalar
data. The data of the hash is depicted as key and a value
pair.
Eg: %h=("kar","blr","ap","hyd","tn","che");
To print the entire hash : print %h; --returns entire hash
(the order may be different)
To print only one value : print $h{"kar"}; -->returns blr
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain the meaning of closure in perl.
Explain USE and REQUIREMENT statements?
What are hashes?
What is the purpose of goto expr statement?
What is boolean context?
Enlist the advantages of using c over perl?
How to get help for perl?
What is the use of -w, -t and strict in Perl?
What is perl unshift array function?
List the prefix dereferencer in Perl.
Give an example of using the -n and -p option.
What is the tk module?
How to prevent file truncation in perl?
Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.
How many ways can we express string in Perl?