in reply to what is the variable type of $data = {

It's a hash of hashes.(HoH)

You might be confused because hashes and arrays have two incarnations in Perl

Hashes consist of key => value pairs of scalars ( actually "string" => scalar pairs to be precise)

To realize nested hashes you need to put a hash reference into the value slot.

That's what's happening here.

See perldsc and perlref for more examples.

HTH :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

°) my wording

Replies are listed 'Best First'.
Re^2: what is the variable type of $data = {
by jimyokl (Novice) on Jun 20, 2019 at 12:23 UTC
    Thank you, LanX.