XP is just a number | |
PerlMonks |
HTML::Template and filehandle ?by gctaylor1 (Hermit) |
on Jul 21, 2009 at 15:18 UTC ( [id://781989]=perlquestion: print w/replies, xml ) | Need Help?? |
gctaylor1 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I've got 10-20 text files that I want to include in one HTML file so a user would see one big scrollable set of data in the browser(and be able to use the browser search feature). As far as I can tell there isn't an HTML method/tag to include external text files like this. I was thinking about using Perl to directly manipulate the HTML file but that will be messy and error prone because not only would I need to append the text files in to one big HTML file but might have to remove sections as well. The text files are generated by another process and there's no guarantee of the file being present, the size, or content being predictable. I've looked at HTML::Pager and HTML::Template and have been trying to get the latter working without success to open a filehandle and then display the contents. I'll be using CGI too because I want to get user input. Am I even close or is there a better way to do this?
This doesn't work, and instead prints Thank-you for your time.
Back to
Seekers of Perl Wisdom
|
|