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

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

994


Explain a tell function in perl?

973


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

1008


What is perl scripting?

949


What is boolean context?

1004


What does the’$_’ symbol mean?

1014


What is the use of 'ne' operator?

1011


What is goto statement in perl?

944


Comment on data types and variables in perl.

934


How to read a file into a hash array?

1053


Explain subroutine?

925


How interpreter is used in perl?

959


What is hash?

1082


Mention what is cpan?

1024


What are numeric operators in perl?

964