in reply to Filling Table in a HTML file using perl

Also it is a very good idea to look at things like Template, or better yet Template::Tutorial::Web, which let you describe the HTML that you want to produce, apart from the underlying program that collects or generates the data. As you will see if you browse through the examples of this (very large ...) package, you could write your program to build up the data to be printed as an array-of-hashes, then use a template containing a [% FOREACH %] loop. It is often the case that you will need to change the HTML presentation of data many times, and that changing the structure of a Perl program in order to do that is difficult. Instead, you can write the program to generate the data, then change the template as often as the Marketing Department requires.
  • Comment on Re: Filling Table in a HTML file using perl