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 the scope of variables in perl.

931


How many loop control keywords are there in perl?

941


How to concatenate strings with perl?

864


What is the difference between perl list and perl array?

865


What is the use of -t?

975


How do I print the entire contents of an array with Perl?

947


How to create a directory in perl?

1077


Differentiate between arrays and list in perl.

993


Does Perl have objects? If yes, then does it force you to use objects? If no, then why?

969


How can you replace the characters from a string and save the number of replacements?

895


How do I do fill_in_the_blank for each file in a directory?

968


Why aren't Perl's patterns regular expressions?

1169


What is -> symbol in perl?

1011


What is the use of "stderr()"?

1020


How do I replace every TAB character in a file with a comma?

968