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
Explain socket programming in perl?
What is perl programming?
Explain goto name?
What does read () command do?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
Explain substr function in perl?
How to copy a file in perl?
How do you you check the return code of a command in perl?
How to do comment in perl?
What does redo statement do in perl?
You want to print the contents of an entire array. How would you do that?
How we can navigate the xml documents?
What is the importance of perl warnings? How do you turn them on?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
What are the arguements we normally use for perl interpreter?