Have a hash of arrays.. i.e.

 

$hash{one}[0] = "value 10";

$hash{one}[1] = "value 11";

$hash{one}[2] = "value 11";

$hash{one}[3] = "value 13";

$hash{one}[0] = "value 20";

$hash{one}[1] = "value 21";

$hash{one}[2] = "value 22";

$hash{one}[3] = "value 23";

 

If I had two arrays and wanted to make them contain the same "stuff" I could
type:

 

    @array1 = @array2..

 

Yet if I try to take one of the elements of my hash of arrays (which by the
way is an array) and do the same I get an error..

 

I can't do @array1 = @hash{one};

 

Thinking about it, will adding parentheses fix it (I am away from my real
computer - I was going to shoot it with a big bazooka gun so I felt it best
<grin>).. 

 

   i.e @array1 = (@hash{one});

 

or should I just go and do some heavy drinking??

 

Thanks in advance.. flk 

Reply via email to