array reference expected

From: bnapus (bnapus_at_yahoo.com)
Date: 10/29/03


Date: 29 Oct 2003 10:50:50 -0800

Perlers -

I want to assign a value to an annonymous hash:
$hash->[$i][$j]{Score} = 1;

Why won't it accept a scalar? I get an error about perl expecting an
address to an array. What I envisioned was a hash within a 2D array.

I ended up using this:
$hash->[$i]{$j}{Score} = 1;

and it does what I want it to - just curious.

Josh