Peter Skipworth <[EMAIL PROTECTED]> wrote:
 
: "Andrew Brosnan" <[EMAIL PROTECTED]> wrote:
: 
: > 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?

: I would have thought
: 
: $tmpl->param(%$hashref);
: 
: would work, as would
: 
: $tmpl->param(%{$dbh->selectrow_hashref($sth)});


    Both of these methods dereference $hashref.
The question was how to do this WITHOUT
dereferencing $hashref? Dereferencing $hashref
potentially passes a lot more than a single
scalar.



HTH,

Charles K. Clarkson
-- 
Head Bottle Washer,
Clarkson Energy Homes, Inc.
Mobile Home Specialists
254 968-8328



-------------------------------------------------------
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

Reply via email to