The param() method has multiple uses (read and set), but it
only returns expected values in 'read' modes -- the return
value for 'set' modes is undefined. This one-line patch
instructs the param() method to return the object by default,
which could allow users to write neat constructions like this:
print HTML::Template->new(filename => 'test.tmpl')-
>param(PARAM => 'Hello')->output;
Log in to post a comment.