Roee Moked wrote:
> Hi,
> How do I access a field in an array that is a field of a hash?
> ex:
> %hash
> $hash[1] =@array1
> $hash[2] =@array2
> .....
> 
> no I want to change $array2[6] via the hash.
> 
> Thanks
> Roee M.

%hash = (array => ['hello', 'world']);
print $hash{"array"}[0];
print $hash{"array"}[1];

-- 
Ahmed Moustafa
http://pobox.com/~amoustafa


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to