http://qs1969.pair.com?node_id=138051


in reply to Non-standard options to tags for CGI.pm

I wouldn't use CGI for the HTML generation, but that's just my preference. I prefer to use Templates. You could store the template as a scalar or in <DATA> if you don't want the seperate file.I would use either HTML::Template or Template Toolkit.

Although if I wanted to output both to Excel and to HTML, I would probably have seperate routines to display in HTML and Excel rather than use Excel's HTML output (but then I don't know what you're doing so maybe I would do it that way). I'd probably try out Spreadsheet::WriteExcel or one of its relations. Spreadsheet::WriteExcel runs on non-Windows machines.

Searching CPAN also reveals Spreadsheet::ParseExcel_XLHTML, which looks interesting. Check out xlhtml.org

Just my 2 pennys worth.

Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;
  • Comment on Re: Non-standard options to tags for CGI.pm