Hi Sharan,

On Monday 02 August 2010 13:13:19 Sharan Basappa wrote:
> Hello Uri,
> 
> Thanks for the explanation. I figured this out once I ran the code
> where I got this doubt.
> The reason why I raised this question is that languages like C++ do
> allow hashes arrays

Please don't call hashes "hashes arrays". They are either "hashes" or 
"associative arrays". (Technically, hashes are the name of the implementation 
rather than the Abstract Data Type of a Dictionary that matches keys to values 
, but we call that in Perl because it's a short and convenient word).

> that can have different values but same key. Thats the reason for the
> second part of my
> question.

Are you talking about the C Standard Template Library (STL)? How does what you 
are referring to allow multiple values for the same key? I should note that if 
you wish to do something like that in Perl, you can have the key point to a 
value that is an array reference, a hash reference or a different data 
structure.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Stop Using MSIE - http://www.shlomifish.org/no-ie/

God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

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


Reply via email to