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

Comment on array slicing and range operator

898


What are the two ways to get private values inside a subroutine?

822


How to create a package?

893


What is perl? What is the basic command to print a string in perl?

828


What are hashes?

888


what is the difference between java and cgi?

1003


What does this symbol mean '->'?

916


Explain the functioning of conditional structures in perl.

875


How many ways can we express string in Perl?

895


How to add elements in a hash in perl?

853


Explain the meaning of closure in perl.

953


What is the usage of -i and 0s options?

922


Differentiate use and require?

880


What is qq (double q)operator in perl?

965


Demonstrate subroutines in perl with a simple example.

816