I would have thought
$tmpl->param(%$hashref);
would work, as would
$tmpl->param(%{$dbh->selectrow_hashref($sth)});
----- Original Message -----
From: "Andrew Brosnan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 11:46 AM
Subject: [htmltmpl] passing hashref to param
> Hello-
>
> Using DBI I have something like this:
>
> my $hashref = $dbh->selectrow_hashref($sth);
>
> which gives a reference to a hash like
>
> { column1 => foo,
> column2 => bar,
> ...
> }
>
> This is exactly what I want to pass to HT.
>
> How can I do this without dereferencing $hashref? Sort of like:
>
> $tmpl->param($hashref);
>
>
> Thanks
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
>
>
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users