perldoc > HTML::Mason::Interp

๐Ÿท๏ธ NAME

HTML::Mason::Interp - Mason Component Interpreter

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Create interpretermy $i = HTML::Mason::Interp->new(...)Initialize Mason with data_dir and comp_root
Execute component$interp->exec($comp, @args)Run a component (standalone mode)
Load component$interp->load($path)Get component object by absolute path
Make anonymous component$interp->make_component(comp_source=>'...')Compile inline Mason source
Set global variable$interp->set_global($varname, $value)Define global for components
Flush code cache$interp->flush_code_cache()Clear in-memory component cache
Check component exists$interp->comp_exists($path)Boolean check for component path
Apply escapes$interp->apply_escapes($text, $flags)Apply one or more escape flags
Set escape flag$interp->set_escape($name => $sub)Register custom escape
Modify comp_root$interp->comp_root([...])Change component roots (if dynamic_comp_root enabled)

๐Ÿ“‹ SYNOPSIS

my $i = HTML::Mason::Interp->new (data_dir=>'/usr/local/mason',
                                  comp_root=>'/usr/local/www/htdocs/',
                                  ...other params...);

๐Ÿ“– DESCRIPTION

Interp is the Mason workhorse, executing components and routing their output and errors to all the right places. In a mod_perl environment, Interp objects are handed off immediately to an ApacheHandler object which internally calls the Interp implementation methods. In that case the only user method is the new() constructor.

โš™๏ธ Parameters to the new() Constructor

๐Ÿ”‘ ACCESSOR METHODS

All of the above properties have standard accessor methods of the same name. Only comp_root and ignore_warnings_expr can be modified in an existing interpreter; the rest are read-only.

๐Ÿด ESCAPE FLAG METHODS

๐Ÿงฐ OTHER METHODS

HTML::Mason::Interp
๐Ÿท๏ธ NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“– DESCRIPTION
โš™๏ธ Parameters to the new() Constructor
๐Ÿ”‘ ACCESSOR METHODS ๐Ÿด ESCAPE FLAG METHODS ๐Ÿงฐ OTHER METHODS

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-17 10:17 @216.73.217.70
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^