in reply to Array / Hash Confusion!

The decode_json function returns a reference to an array or a hash, not an array directly. So you really want to use a scalar variable.

Update: Oops, two responses already said it before me while I was loosing time checking that I was not going to say something wrong or stupid. ;-)