The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::Mason::Utils - Publically available functions useful outside of Mason

DESCRIPTION

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

FUNCTIONS

data_cache_namespace ($path)

Given a component path, this method returns its default Cache::Cache namespace. This can be useful if you want to access the cached data outside of Mason.

This method will not work if you are using multiple component roots.

cgi_request_args ($cgi, $method)

This function expects to receive a CGI.pm object and the request method (GET, POST, etc). Given these two things, it will return a hash containing all the arguments passed via the CGI request. The keys will be argument names and the values will be either scalars or array references.