On Sat, 23 Apr 2011 18:14:46 +1000, Sean Murphy wrote: > > I am starting another project and I wish to know the best method of > creating a web page via Perl. I don't want to reinvent the wheel here. > The perl script must generate plain 4.0 HTML code. I am not after any > bells or whistles on the page. > > The Perl script will go through all my Audio books and group them by > author, title and titles in series. I was thinking a table with the > below columns: > > Author, Series, Title, stream, category and rating. Rating is Adult, > Junior, etc. Category is SiFi, thriller, etc. > > If the person clicks on the title, a brief description would pop-up. > This would be a text file that it would show. Stream it would send the > audio directly to the browser.
I find HTML::Template a good solution for the beginner who knows HTML. The Template Toolkit is awesome in its power but takes longer to learn for basic jobs like what you describe. If and when you learn the Template Toolkit for some other reason then you're likely to use it for everything including tasks like this one. The CGI.pm module can generate HTML via functions or methods with the same names as the elements. It was very popular at one time although templating makes a lot more sense. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/courses/perl3/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/