> $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] }; In order to get close to what I think you're trying to describe, you'd have to have another array reference and stuff those three arrays in there. $HoA = ( key1 => [ ['A',1], ['B',2], ['C',3] ]); Which is clunky when you want to detect duplicates, which is why I suggested the hash. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>