On Fri, 1 Oct 2004 10:51:50 -0400, Dave Gray <[EMAIL PROTECTED]> wrote:
> > $VAR1 = { 'key1' => ['A',1],['B',2],['C',2]};
> 
> That isn't going to do what you think it is... What you're asking for
> there is to use the ['B', 2] array reference as a hash key...
> 
> $VAR1 = {
>   'ARRAY(0x804ca54)' => ['C',2],
>   'key1' => ['A',1]
> };

Actually, the string representation of the ['B',2] is what gets used,
so the actual ['B',2] array gets thrown away.

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


Reply via email to