Hi Lesley, Thanks a bunch for letting me know about bunch of options. I am inclined to go with HTML::Template. Thanks once again.
I would also like to thank John SJ Anderson, Octavian Rasnita and Ron Weidner for their valuable inputs. Your inputs are timely and valuable. As I have a stringent deadline, I may not be able to evaluate other options (viz. HTML::TextToHTML, HTML::FromText) but definitely I will be happy to test it sometime in the future. Sincerely, Shaji ------------------------------------------------------------------------------- Your talent is God's gift to you. What you do with it is your gift back to God. ------------------------------------------------------------------------------- ________________________________ From: 'lesleyb' <lesl...@herlug.org.uk> To: beginners@perl.org Sent: Monday, 8 July 2013 5:48 PM Subject: Re: Is there a way to generate HTML reports? On Sat, Jul 06, 2013 at 10:43:30PM +0800, *Shaji Kalidasan* wrote: > Greetings, > > As I understand, Perl has excellent report-generation capabilities. By using > formats, we can actually visualize how our output will look because the > definition of a format in Perl is very similar to what you see on the output. > Is there any way we to convert these formats into HTML reports? > > My goal is to create good looking HTML reports. Please suggest/advice. > > > Any help is highly appreciated. Hi Shaji I don't know of any module that interprets perl formats into HTML. I suggest you look at one of the templating systems available under Perl. I have used both HTML::Template and Template::Tookit. HTML::Template is simpler and not necessarily restricted to HTML output, despite its name. I have used it in job control for another language. I'm pretty sure this module could be used to produce the formatted hardcopy you require and the HTML you require presumably for the same data. The last release for HTML::Template was 17th Jan 2013. http://search.cpan.org/~wonko/HTML-Template-2.94/ Template::Toolkit has an initial learning curve. You have to learn the templating language used in the templates. There's plenty of support for this at template-toolkit.org and in the pod for the module. Again you can use Template::Toolkit to create an equivalent hardcopy output. The last release for Template::Toolkit (also known as TT2) was 7th Feb 2012. http://search.cpan.org/dist/Template-Toolkit/ One I haven't yet tried is Text::Xslate which might well be worth looking at. Again you may well be able to produce both HTML and hardcopy output using this module. The last release for Text::Xslate was 6th July 2013. http://search.cpan.org/~gfuji/Text-Xslate-2.0008/ I also can't comment on HTML::TextToHTML or HTML::FromText but they may equally be of interest to you, given the work you have already committed into the formats you're using. Use http://search.cpan.org to look at these modules and decide. Good luck Lesley -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/