in reply to Re^2: Adjusting variable context when working with JSON data?
in thread Adjusting variable context when workign with JSON data?
That's something you will have to get used to as it's a fundamental syntax in perl. $decoded is a reference to an array. To dereference it you just put a @ at the front. e.g. $x = [1,2,3]; @array = @$x. You can also put squiggles around the reference if that makes it clearer and in some cases this is needed, like @{$decoded}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Adjusting variable context when working with JSON data?
by unmatched (Sexton) on Dec 08, 2024 at 10:52 UTC | |
by hippo (Archbishop) on Dec 08, 2024 at 11:32 UTC | |
by unmatched (Sexton) on Dec 09, 2024 at 10:56 UTC | |
by marinersk (Priest) on Dec 10, 2024 at 07:31 UTC |