Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a hash?

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


Please Help Members By Posting Answers For Below Questions

Why does Perl not have overloaded functions?

1103


What is the importance of perl warnings? How do you turn them on?

1094


What is the difference between perl array and perl hash?

1171


What does the q{ } operator do?

960


What is perl I used for?

1000


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

1074


Which feature of perl provides code reusability?

1045


What is “grep” function in perl?

1069


What is q (single q) operator in perl?

1173


You want to add two arrays together. How would you do that?

936


How do you set environment variables in perl?

1103


What is the purpose of “_file_ literal” and “_line_ literal” in perl?

960


What is the purpose of goto expr statement?

957


What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?

1037


How to add elements in a hash in perl?

967