{
  "id": "05",
  "content": [
    {
      "type": "heading",
      "text": "Modules & CPAN"
    },
    {
      "type": "text",
      "html": "Use <code>use MODULE;</code> to import modules. CPAN hosts thousands of libraries. Install via <code>cpan</code> or <code>cpanm</code>."
    },
    {
      "type": "text",
      "html": "<pre><code>use strict; use warnings; use CGI qw(:standard);\nprint header('text/plain');\nprint \"Perl version: $]\";\n</code></pre>"
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "Where do you get most Perl modules?",
        "options": [
          {
            "id": "a",
            "text": "CPAN"
          },
          {
            "id": "b",
            "text": "NPM"
          },
          {
            "id": "c",
            "text": "Composer"
          }
        ],
        "correct": [
          "a"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "Which pragma helps catch mistakes at compile time?",
        "options": [
          {
            "id": "a",
            "text": "use strict"
          },
          {
            "id": "b",
            "text": "use loose"
          },
          {
            "id": "c",
            "text": "use unsafe"
          }
        ],
        "correct": [
          "a"
        ]
      }
    ]
  }
}