{
  "id": "03",
  "content": [
    {
      "type": "heading",
      "text": "Scalars, Arrays, and Hashes"
    },
    {
      "type": "text",
      "html": "Perl\u2019s core types: <code>$scalar</code>, <code>@array</code>, and <code>%hash</code>."
    },
    {
      "type": "text",
      "html": "<pre><code>my $name = 'Xavier';\nmy @colors = ('blue','green');\nmy %user = (name=>'Alice', role=>'admin');\nprint $colors[0];       # blue\nprint $user{'role'};    # admin\n</code></pre>"
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "Which sigil denotes an array?",
        "options": [
          {
            "id": "a",
            "text": "@"
          },
          {
            "id": "b",
            "text": "$"
          },
          {
            "id": "c",
            "text": "%"
          }
        ],
        "correct": [
          "a"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "A hash is indexed by:",
        "options": [
          {
            "id": "a",
            "text": "Keys (usually strings)"
          },
          {
            "id": "b",
            "text": "Integers only"
          },
          {
            "id": "c",
            "text": "Booleans only"
          }
        ],
        "correct": [
          "a"
        ]
      }
    ]
  }
}