{
    "mode": "perldoc",
    "parameter": "HTML::Mason::Utils",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AMason%3A%3AUtils/json",
    "generated": "2026-06-13T00:05:57Z",
    "sections": {
        "NAME": {
            "content": "HTML::Mason::Utils - Publicly available functions useful outside of Mason\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The functions in this module are useful when you need to interface code you have written with\nMason.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "datacachenamespace ($compid)\nGiven a component id, this method returns its default \"Cache::Cache\" namespace. This can be\nuseful if you want to access the cached data outside of Mason.\n\nWith a single component root, the component id is just the component path. With multiple\ncomponent roots, the component id is \"key\"/\"path\", where \"key\" is the key corresponding to\nthe root that the component falls under.\n\ncgirequestargs ($cgi, $method)\nThis function expects to receive a \"CGI.pm\" object and the request method (GET, POST, etc).\nGiven these two things, it will return a hash in list context or a hashref in scalar\ncontext. The hash(ref) will contain all the arguments passed via the CGI request. The keys\nwill be argument names and the values will be either scalars or array references.\n",
            "subsections": []
        }
    },
    "summary": "HTML::Mason::Utils - Publicly available functions useful outside of Mason",
    "flags": [],
    "examples": [],
    "see_also": []
}