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
How many loop control keywords are there in perl?
What rules must be followed by modules in perl.
What is the closure in PERL?
what is the main function of fork() in cgi programming?
What are the different instances used in cgi overhead?
What are the logical operators used for small scale operations?
In Perl, what is grep function used for?
Explain string comparison operators in perl.
What is the difference between perl list and perl array?
Where do we require ‘chomp’ and what does it mean?
Explain join function in perl?
List the data types that Perl can handle?
How does polymorphism work in perl? Give an example.
What is 'rollback' command in perl?
How do you you check the return code of a command in perl?