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

What are the various file operations in perl. Explain with example.

1002


Explain 'grep' function.

1025


You want to empty an array. How would you do that?

962


What is the difference between use and require in perl?

916


How will you open a file in read-only mode in perl?

958


How to read from a pipeline with Perl

1101


What are the different ways to run cgi?

1010


How to add elements in a hash in perl?

967


Define perl scripting?

1030


Can we load binary extension dynamically?

997


Differentiate between arrays and list in perl.

1032


Explain the meaning of subroutine?

1017


What are the various perl data types based on the context?

989


How can you create anonymous subroutines?

964


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

1062