in reply to Re^6: Size of a HASH (with more keys)
in thread Size of a HASH (with more keys)
try reading JSONP and explain the difference. You might figure out how to use JSON then! (hint: + padding)
> Is the $perl_scalar my $testHASH in our case?
from JSON
$json_text = to_json($perl_scalar) Converts the given Perl data structure to a json string.
If you try to understand JSON and Perl Data Structures you will see that they have the exactly same structure with little syntactic differences (enough to justify a module in that case)
I.o.w. $perl_scalar is a ref to a HoH or HoA or AoH (... and so on) reflecting the JSON structure you desire.
Please try ...
Hope this helped! :)
Cheers Rolf
(addicted to the Perl Programming Language)
¹) use Data::Dumper or Data::Dump to inspect data structures
|
|---|