Re: Accessing array from Perl & DBI using Template Toolkit

2010-08-14 Thread MySelf rdtan.net
Hi Steve, > Understanding references is imho one of the most important aspects of > being able to use Perl effectively, and minimize headache. > (stuffing my head into the Llama book) > That's because iirc TT accepts a hashref as the data, and you must stuff > your arrayrefs within it. > > Here i

Re: Accessing array from Perl & DBI using Template Toolkit

2010-08-11 Thread Steve Bertrand
On 2010.08.11 00:15, MySelf rdtan.net wrote: > On 10/08/10 4:49, Dermot wrote: >> I think you might be getting a bit confused here. TT requires >> references for it's parameters variable, so yes array, hash references >> (or any reference that returns a list) but that is different from how >> you

Re: Accessing array from Perl & DBI using Template Toolkit

2010-08-10 Thread MySelf rdtan.net
Hi Dermot, On 10/08/10 4:49, Dermot wrote: snip > Hi, > > Not sure why you had to send this twice. Oops, sorry about it, to everybody. The first email (my time shows 8pm ++) was sent but it didn't turn up in my email client (on this mailing list, beginners@perl.org) and my hosting's webmail interf

Re: Accessing array from Perl & DBI using Template Toolkit

2010-08-10 Thread Dermot
On 9 August 2010 13:25, me @ wrote: > Hi, Hi, Not sure why you had to send this twice. I'm trying to pickup CGI web application programming using Perl, DBI & ... ... start of list.tt <<< > Content-type: text/html > > > [% PROCESS header %] > Form List > > >    [% FOREACH kar IN kars.val

Accessing array from Perl & DBI using Template Toolkit

2010-08-09 Thread me @
Hi, I'm trying to pickup CGI web application programming using Perl, DBI & TT (Template Toolkit). This small application is about storing data (using CGI::FormBuilder) list it using Template Toolkit. After retrieving records from MySQL using DBI, I've problem understanding how to pass to Template T