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

Explain socket programming in perl?

877


What is perl programming?

975


Explain goto name?

885


What does read () command do?

891


How can we create perl programs in unix, windows nt, macintosh and os/2 ?

851


Explain substr function in perl?

989


How to copy a file in perl?

937


How do you you check the return code of a command in perl?

963


How to do comment in perl?

925


What does redo statement do in perl?

992


You want to print the contents of an entire array. How would you do that?

916


How we can navigate the xml documents?

953


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

1007


how to extract pin_code,phone_number,year from text file using regular expressions in perl

2208


What are the arguements we normally use for perl interpreter?

925