Storing an Array in a Hash

From: Hale (epal_at_yaho.com)
Date: 12/28/03


Date: Sun, 28 Dec 2003 18:46:50 GMT

Hi,

     I'm having a problem storing an array inside of a hash. I'm bringing
in a hash via a reference and I want to assign a value to it. This is what
I'm doing:

push (@{$$node->{ELEMENTS}}, "New value");

(I need to use "push" because this is going in a for-loop)

However, when I run the script, I get the following:

Can't use string ("0") as an ARRAY ref while "strict refs" in use at ......

How do I solve this?

THanks



Relevant Pages