Re: [htmltmpl] passing hashref to param
Brought to you by:
samtregar
From: Peter S. <sk...@pe...> - 2003-03-12 00:54:26
|
I would have thought $tmpl->param(%$hashref); would work, as would $tmpl->param(%{$dbh->selectrow_hashref($sth)}); ----- Original Message ----- From: "Andrew Brosnan" <an...@br...> To: <htm...@li...> 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 > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users > > |