Hi,

@days{'Jan','Feb'} Hash slice containing  ($days{'Jan'},$days{'Feb'})

-extracted from programmin perl 3rd edition

-srini

jeevs wrote:
why is it that when i write
my %hash = (jeevan=>'ingale', sarika=>'bere' );
my @arr = @hash{jeevan, sarika};
print @arr;

prints ingale bere ....
can someone explain me how an @sign is used and what exactly goes in
the secongline of thecode.

contrary when i try something like replacing the @ sign in second line
with % sign which seems more logical it doesnt work

my %hash = (jeevan=>'ingale', sarika=>'bere' );
my @arr = %hash{jeevan, sarika};
print @arr;

if any1 can direct me to document .. it would be helpfull




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to