Do you know where your variables are? | |
PerlMonks |
Outputing data from mySQL query into format for use with HTML::Templateby jarvis (Initiate) |
on Mar 10, 2001 at 02:59 UTC ( [id://63391]=perlquestion: print w/replies, xml ) | Need Help?? |
jarvis has asked for the wisdom of the Perl Monks concerning the following question:
Hi there, can anyone help??... Please!! I'm new to all this and i am trying to output data from a search query on mySQL to a loop variable using the loop function in HTML::Template ( <TMPL_LOOP NAME=""> <TMPL_VAR NAME=""> </TMPL_LOOP>) I understand that i have to return an array of hashes to the HTML::Template module, but i cant seem to successfully convert the output from mySQL to this array of hashes. I realise that i am missing something obvious, but i can't get my head around it. My code is something like this... how do i turn this bit (above - @vidinfo) into an array of hashes so that this bit (below)will output it properly??? all help gratefully received..
Back to
Seekers of Perl Wisdom
|
|