2008/4/29 Roger Burton West <[EMAIL PROTECTED]>:

> On Tue, Apr 29, 2008 at 02:39:17PM +0100, James Hardy wrote:
> >the example
> >code for section 5 is the same as the example for section 4 after "# And
> >with some TMPL_LOOPs:", and as such doesn't seem to use a hashref at all.
>
> It's not, you know.
>
>      $self->param(PARAM => 'value',
>                   PARAM2 => 'value',
> [...]
>
> vs
>
>      $self->param(
>                   {
>                      PARAM => 'value',
>                      PARAM2 => 'value',
> [...]
>
> Roger
>

Fantastic, I'd looked at that for so long and never notices the braces, I
was expecting a hash ref as a variable either \%hash or $hashref, with the
hash being defined previously (which I have just tested and it works fine).
It might be an idea to include that in the docs for people like me who are
still a little clueless about the many ways of doing the same thing in Perl.

Thanks,

James
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to