in reply to Print Entire Text File to Perl Script/Html
I realize that using a Templating system or Website Authoring system is daunting when first learning web programming, but consider that you could accomplish this with HTML::Template like so:
<TMPL_INCLUDE NAME="textfilename.txt">
In HTML::Mason like so:
<& textfilename.txt &>
And in Template like so:
[% INCLUDE textfilename.txt %]
And for the record, PHP makes this just as easy. I find it ironic that people complain about Perl losing market share to PHP when very few mentors seem to nudge newbies to use these modules and let instead let them continue using Perl in a very non web savey way.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print Entire Text File to Perl Script/Html
by Anonymous Monk on Dec 11, 2008 at 15:15 UTC | |
by jeffa (Bishop) on Dec 11, 2008 at 15:20 UTC | |
by Anonymous Monk on Dec 12, 2008 at 03:06 UTC |