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. ;-)
In reply to Re: Array / Hash Confusion!
by Laurent_R
in thread Array / Hash Confusion!
by andy503
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |