On 2019-12-03 03:17, Fernando Santagata wrote:

You can't write "my @y[0]".



--
Fernando Santagata

Hi Fernando,

You called it.  I had to declare @y first before
assigning hashes to it.

Thank you!

-T

$ p6 'my @y[0]={a=>"aa",b=>"bb"};'
Illegal dimension in shape: 0. All dimensions must be integers bigger than 0
  in block <unit> at -e line 1


$ p6 'my @y; @y[0]={a=>"aa",b=>"bb"};'
<no complaining>

Reply via email to