#9 useful return value for param() when setting

open
nobody
None
5
2005-05-12
2005-05-12
eightball
No

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;

Discussion

  • eightball
    eightball
    2005-05-12

    patch to Template.pm