{
    "mode": "perldoc",
    "parameter": "Template::Plugin::CGI",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Template%3A%3APlugin%3A%3ACGI/json",
    "generated": "2026-06-12T18:48:00Z",
    "synopsis": "[% USE CGI %]\n[% CGI.param('parameter') %]\n[% USE things = CGI %]\n[% things.param('name') %]\n# see CGI docs for other methods provided by the CGI object",
    "sections": {
        "NAME": {
            "content": "Template::Plugin::CGI - Interface to the CGI module\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "[% USE CGI %]\n[% CGI.param('parameter') %]\n\n[% USE things = CGI %]\n[% things.param('name') %]\n\n# see CGI docs for other methods provided by the CGI object\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a very simple Template Toolkit Plugin interface to the \"CGI\" module. A \"CGI\" object will\nbe instantiated via the following directive:\n\n[% USE CGI %]\n\n\"CGI\" methods may then be called as follows:\n\n[% CGI.header %]\n[% CGI.param('parameter') %]\n\nAn alias can be used to provide an alternate name by which the object should be identified.\n\n[% USE mycgi = CGI %]\n[% mycgi.startform %]\n[% mycgi.popupmenu({ Name   => 'Color'\nValues => [ 'Green' 'Black' 'Brown' ] }) %]\n\nParenthesised parameters to the \"USE\" directive will be passed to the plugin constructor:\n\n[% USE cgiprm = CGI('uid=abw&name=Andy+Wardley') %]\n[% cgiprm.param('uid') %]\n",
            "subsections": []
        },
        "METHODS": {
            "content": "In addition to all the methods supported by the \"CGI\" module, this plugin defines the following.\n\nparams()\nThis method returns a reference to a hash of all the \"CGI\" parameters. Any parameters that have\nmultiple values will be returned as lists.\n\n[% USE CGI('user=abw&item=foo&item=bar') %]\n[% CGI.params.user %]            # abw\n[% CGI.params.item.join(', ') %] # foo, bar\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Andy Wardley <abw@wardley.org> <http://wardley.org/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.\n\nThis module is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Template::Plugin, CGI\n",
            "subsections": []
        }
    },
    "summary": "Template::Plugin::CGI - Interface to the CGI module",
    "flags": [],
    "examples": [],
    "see_also": []
}