{
    "mode": "perldoc",
    "parameter": "Template::Constants",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Template%3A%3AConstants/json",
    "generated": "2026-07-05T04:36:35Z",
    "synopsis": "use Template::Constants qw( :status :error :all );",
    "sections": {
        "NAME": {
            "content": "Template::Constants - Defines constants for the Template Toolkit\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Template::Constants qw( :status :error :all );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The \"Template::Constants\" modules defines, and optionally exports into the caller's namespace, a\nnumber of constants used by the Template package.\n\nConstants may be used by specifying the \"Template::Constants\" package explicitly:\n\nuse Template::Constants;\nprint Template::Constants::STATUSDECLINED;\n\nConstants may be imported into the caller's namespace by naming them as options to the \"use\nTemplate::Constants\" statement:\n\nuse Template::Constants qw( STATUSDECLINED );\nprint STATUSDECLINED;\n\nAlternatively, one of the following tagset identifiers may be specified to import sets of\nconstants: '\":status\"', '\":error\"', '\":all\"'.\n\nuse Template::Constants qw( :status );\nprint STATUSDECLINED;\n\nConsult the documentation for the \"Exporter\" module for more information on exporting variables.\n",
            "subsections": []
        },
        "EXPORTABLE TAG SETS": {
            "content": "The following tag sets and associated constants are defined:\n\n:status\nSTATUSOK             # no problem, continue\nSTATUSRETURN         # ended current block then continue (ok)\nSTATUSSTOP           # controlled stop (ok)\nSTATUSDONE           # iterator is all done (ok)\nSTATUSDECLINED       # provider declined to service request (ok)\nSTATUSERROR          # general error condition (not ok)\n\n:error\nERRORRETURN          # return a status code (e.g. 'stop')\nERRORFILE            # file error: I/O, parse, recursion\nERRORUNDEF           # undefined variable value used\nERRORPERL            # error in [% PERL %] block\nERRORFILTER          # filter error\nERRORPLUGIN          # plugin error\n\n:chomp                  # for PRECHOMP and POSTCHOMP\nCHOMPNONE            # do not remove whitespace\nCHOMPONE             # remove whitespace to newline\nCHOMPALL             # old name for CHOMPONE (deprecated)\nCHOMPCOLLAPSE        # collapse whitespace to a single space\nCHOMPGREEDY          # remove all whitespace including newlines\n\n:debug\nDEBUGOFF             # do nothing\nDEBUGON              # basic debugging flag\nDEBUGUNDEF           # throw undef on undefined variables\nDEBUGVARS            # general variable debugging\nDEBUGDIRS            # directive debugging\nDEBUGSTASH           # general stash debugging\nDEBUGCONTEXT         # context debugging\nDEBUGPARSER          # parser debugging\nDEBUGPROVIDER        # provider debugging\nDEBUGPLUGINS         # plugins debugging\nDEBUGFILTERS         # filters debugging\nDEBUGSERVICE         # context debugging\nDEBUGALL             # everything\nDEBUGCALLER          # add caller file/line info\nDEBUGFLAGS           # bitmap used internally\n\n:all\nAll the above constants.\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, \"Exporter\"\n",
            "subsections": []
        }
    },
    "summary": "Template::Constants - Defines constants for the Template Toolkit",
    "flags": [],
    "examples": [],
    "see_also": []
}