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
Where do we require ‘chomp’ and what does it mean?
Explain a tell function in perl?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
What is perl scripting?
What is boolean context?
What does the’$_’ symbol mean?
What is the use of 'ne' operator?
What is goto statement in perl?
Comment on data types and variables in perl.
How to read a file into a hash array?
Explain subroutine?
How interpreter is used in perl?
What is hash?
Mention what is cpan?
What are numeric operators in perl?