Shlomi,

I am not trying to be critical of perl or anything (if that is what you felt).
I am only trying to see if a certain feature exists or not.
The current problem I am working on has duplicate key values and hence
the question.

The STL multipmap library explanation is below:
http://www.cplusplus.com/reference/stl/multimap/

Regards,
Sharan

On Mon, Aug 2, 2010 at 4:18 PM, Shlomi Fish <shlo...@iglu.org.il> wrote:
> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to