Answer Posted / raghav
Hash/Associative array is the one in which all
the values are stored in terms of keys and values.
i.e., the values are indexed with the help of keys.
You cannot get back the values in a correct order as it
happens in normal array. because in this values are stored
in random positions. The only way to get in a correct order
is to sort that array.
ex: %hash = {"Name","Raghav","Age","26"};
$hash{'Name'} will give "Raghav"
$hash{'Age'} will give "26"
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Define dynamic scoping.
What are the various perl data types based on the context?
Explain use of ‘my’ keyword in perl?
what are steps to do to lock the sony ericsson mobile with password?
Explain arrays in perl.
Explain '->' in perl?
Why Perl aliases are considered to be faster than references?
In CPAN module, name an instance you use.
What is the use of -w, -t and strict in Perl?
How do I read command-line arguments with Perl?
What does the q{ } operator do?
Write a program to decode the data in the form using cgi programming
How do you turn on the perl warnings?
what are prefix dereferencer and list them out?
How to merge two arrays in perl?