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 / savitha sridhar

Hash or "Associative Array" is an unordered list of scalar
data. The data of the hash is depicted as key and a value
pair.

Eg: %h=("kar","blr","ap","hyd","tn","che");

To print the entire hash : print %h; --returns entire hash
(the order may be different)
To print only one value : print $h{"kar"}; -->returns blr

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the meaning of closure in perl.

1031


Explain USE and REQUIREMENT statements?

930


What are hashes?

945


What is the purpose of goto expr statement?

916


What is boolean context?

994


Enlist the advantages of using c over perl?

916


How to get help for perl?

981


What is the use of -w, -t and strict in Perl?

992


What is perl unshift array function?

1037


List the prefix dereferencer in Perl.

930


Give an example of using the -n and -p option.

999


What is the tk module?

955


How to prevent file truncation in perl?

1018


Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

1050


How many ways can we express string in Perl?

965