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
Differentiate use and require?
What are perl strings?
Differences between die and exit.
Which feature of perl provides code reusability?
Explain lists and ivalue?
What does read () command do?
How do I print the entire contents of an array with Perl?
What is cpan ? What are the modules coming under this?
What are the different instances used in cgi overhead?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
Define say() function in perl?
What are scalars?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
What is Perl?
What happens in dereferencing?