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

How many loop control keywords are there in perl?

907


What rules must be followed by modules in perl.

966


What is the closure in PERL?

977


what is the main function of fork() in cgi programming?

1068


What are the different instances used in cgi overhead?

953


What are the logical operators used for small scale operations?

932


In Perl, what is grep function used for?

1035


Explain string comparison operators in perl.

982


What is the difference between perl list and perl array?

833


Where do we require ‘chomp’ and what does it mean?

941


Explain join function in perl?

910


List the data types that Perl can handle?

988


How does polymorphism work in perl? Give an example.

831


What is 'rollback' command in perl?

923


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

964