in reply to Extracting data using JSON

Shaveta_Chawla:

You've already covered arrays in your course, right? Since your code works, you've already managed to get the JSON data into a scalar variable $perl_scalar. So now you can just use the same code you would normally use to put the value into or get it from an array.

my @var; ... read JSON data into $perl_scalar $var[3] = $perl_scalar; # Put your JSON value into the array my $another_scalar = $var[3]; # Retrieve the value

...roboticus

When your only tool is a hammer, all problems look like your thumb.