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
Why do we use "use strict" in perl?
What is perl dbi?
What are hashes?
What is a chomp() function in perl?
Explain the internal working of cgi
How does polymorphism work in perl?
Explain lists and ivalue?
What is perl push array function?
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?
Mention what is cpan?
What is it meants by '$_'?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
Explain strftime() function in perl?
How to code in perl to implement the tail function in unix?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?