in reply to Re^5: Adjusting variable context when working with JSON data?
in thread Adjusting variable context when workign with JSON data?

Oh, I see. I got it completely backwards. For some reason I thought that `$` was used only for scalar values. Will read more on this, thanks again!
  • Comment on Re^6: Adjusting variable context when working with JSON data?

Replies are listed 'Best First'.
Re^7: Adjusting variable context when working with JSON data?
by marinersk (Priest) on Dec 10, 2024 at 07:31 UTC
    For some reason I thought that `$` was used only for scalar values.

    Well, yes. A reference is a scalar variable. It contains one value: The reference (in the old days we might have called it the "address") to something else.

    The nature of that "something else" is irrelevant to the typing of the reference -- it is a scalar.