On Tue, 2002-10-15 at 06:14, Dermot Paikkos wrote:
> Hi 
> 
> I have a perl script (mod_perl) that connects to a DB (using 
> APACHE:: DBI). I am trying to display 3 fields from all the records in 
> a table (about 55 records). The records come back as an array 
> reference (an array of arrays). I have been passing the arrayref to my 
> templates like so: 
> 
> my $file = "test.atm";
> my $vars = {
>               data => @data,
>              };

The problem is that you're not passing a reference. Try instead:

 my $vars = {
                data => \@data,
               };

Chris

-- 
Chris Winters ([EMAIL PROTECTED])
Building enterprise-capable snack solutions since 1988.


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to