1HTML::Mason::Utils(3) User Contributed Perl DocumentationHTML::Mason::Utils(3)
2
3
4

NAME

6       HTML::Mason::Utils - Publicly available functions useful outside of
7       Mason
8

DESCRIPTION

10       The functions in this module are useful when you need to interface code
11       you have written with Mason.
12

FUNCTIONS

14       data_cache_namespace ($comp_id)
15           Given a component id, this method returns its default
16           "Cache::Cache" namespace.  This can be useful if you want to access
17           the cached data outside of Mason.
18
19           With a single component root, the component id is just the
20           component path. With multiple component roots, the component id is
21           "key"/"path", where "key" is the key corresponding to the root that
22           the component falls under.
23
24       cgi_request_args ($cgi, $method)
25           This function expects to receive a "CGI.pm" object and the request
26           method (GET, POST, etc).  Given these two things, it will return a
27           hash in list context or a hashref in scalar context.  The hash(ref)
28           will contain all the arguments passed via the CGI request.  The
29           keys will be argument names and the values will be either scalars
30           or array references.
31
32
33
34perl v5.32.1                      2021-01-27             HTML::Mason::Utils(3)
Impressum