my $p = new HTML::Mason::Parser (...params...);
ignore_warnings_expr =>
'Global symbol.*requires explicit package'
Undefined by default, meaning that all warnings are fatal.
use vars qw($r);
to suppress strict warnings about uses of global $r (the
Apache request object).
% my $noun = "World";
Hello, <% $noun %>!
How are ya?
Has 51 total bytes, 19 of which are plain text. This allows you to adjust the trade-off between the memory savings of source references and the performance advantage of in-line plain text. For example, to choose only components with at least 50% plain text:
source_refer_predicate =>
sub { return $_[1] / $_[0] >= 0.5 }
The current default is
sub { return $_[1] >= 500 }
i.e. any component with at least 500 characters. This is an experimental setting and may change.
-T flag). If true, Mason will pass all component source and filenames through
a dummy regular expression match to untaint them. In the future this option
may become more sophisticated to allow stricter checks. Default is false.