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
    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.
    Those newbies can't distinguish between server-side and client-side, don't know what is HTTP/CGI; templates are too complicated for them.

      Then watch them switch one by one to PHP. If you don't want to be part of the solution, then for God's sakes don't add to the problem.

      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)
      
        I don't complain/concern with market share.