Peter Makholm wrote:
> Bioperler <> writes:
>
>> %HoAoA = (
>> hash1 => [
>> ( [ "first", "second" ],
>> [ "third" , "fourth" ],
>> [ "fifth" , "sixth" ]
>> )
>> ],
>
> You don't need the inner ()'s
Yes, you're right. But actually the structure is a bit more complex - I
just shorted it a little bit to ease it.
>
>> hash2 => [
>> ( [ "9th", "10th" ],
>> [ "11th" , "12th" ]
>> )
>> ]
>>
>> );
>>
>
>> Example of what I want to do:
>> push($HoAoA{hash1}[2], "seventh");
>
> The first argument to push should be an actual array and not just an
> reference. So you have to dereference it:
>
> push @{ $HoAoA{hash1}[2] }, "seventh";
Thanks! This works. Seems as I have to read a little bit about that