develooper Front page | perl.beginners | Postings from May 2007

acccesing an hash

Thread Next
From:
jeevs
Date:
May 28, 2007 04:02
Subject:
acccesing an hash
Message ID:
1180331634.843209.245950@z28g2000prd.googlegroups.com
my %hash = (jeevan=>'Ingale', Sarika =>'Bere');
my @star = @hash{jeevan, Sarika};
print @star;

this prints ingale and bere but when i write

my %hash = (jeevan=>'Ingake', Sarika =>'Bere');
my @star = %hash{jeevan, Sarika};
print @star;

its an error..

Can someone explain or atleast point me to any document explainng what
exactly happens heres...


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About