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
How can you use Perl warnings and what is the importance to use them?
You want to read command-line arguements with perl. How would you do that?
What is perl dbi?
Define say() function in perl?
Explain returning values from subroutines?
Which functions in perl allows you to include a module file. State their differences.
Explain the meaning of perl one-liner?
Explain a tell function in perl?
Explain chomp, chop, cpan, tk.
Explain lists and ivalue?
What is 'rollback' command in perl?
What does the qq{ } operator do?
What does last statement do in perl?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
What is it meants by '$_'?