Re: [PBML] packages for html code
>>>>> "Thiago" == Thiago Nacimento Rodrigues <nascimentothiago@...> writes:Thiago> I want to generate a HTML code using the package
Thiago> CGI.pm or HTML::EasyTags.
Thiago> But, my problem is following: I need to create a table
Thiago> whose rows are gotten
Thiago> from the database. For this, I need of a loop for to
Thiago> cover the lines of the
Thiago> database. How can I to execute the following sequence
Thiago> of the actions:
Thiago> 1. to begin the table outside of the loop;
Thiago> 2. to insert the lines in the table (inside of the
Thiago> 3. outside of the loop, to finish the construction of
Thiago> the table?
With CGI.pm, look at SPECIAL FORMS FOR IMPORTING HTML-TAG FUNCTIONS about
creating start_table and end_table during the import.
But if you're doing anything mildly complicated, perhaps you should
look at a true templating solution, like HTML::Template or Template
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!