PsychoSpunk has asked for the wisdom of the Perl Monks concerning the following question:

So, a user of mine wants to embed perl in his HTML. I want to know if HTML::Mason is the (best|only) module for this purpose. I'm just looking for experiences with this and any others that may exist. Benchmarks and anecdotes appreciated.

Thanks

ALL HAIL BRAK!!!

Replies are listed 'Best First'.
Re: Embedding Perl in HTML
by mirod (Canon) on Oct 26, 2000 at 11:19 UTC
RE: Embedding Perl in HTML
by dempa (Friar) on Oct 26, 2000 at 11:55 UTC
    I have never used HTML::Mason or Text::Template, instead I use Ralf S. Engelschall's ePerl. I run it as a standalone CGI thing from apache, with the following simple configuration:

    AddType application/x-httpd-eperl .eperl .epl
    Action application/x-httpd-eperl /cgi-bin/nph-eperl

    I'm a Unix system administrator, and for my needs, ePerl is just perfect.

      I'd just like to say that I've read the source code to ePerl and that is enough to make me not want to use it.

              - tye (but my friends call me "Tye")
        ... and what's wrong with it? Security issues? Performance issues?
Re: Embedding Perl in HTML
by cianoz (Friar) on Oct 26, 2000 at 14:29 UTC
    i'm quite happy with Apache::ASP, i think it is the best tool for embedding perl into html, it has a clean interface too and a lot of good things like built-in session and so on. Look at the Home page of the project for more info.
      The link you gave turned out to be unreachable for me, but apache.org refers to perl.apache.org, which covers Apache::ASP.

      neophyte

      UPDATED s/dead/unreachable for me/
        I've just tested (again) my link and it works!! (mabe is not reachable for you)
Re: Embedding Perl in HTML
by FouRPlaY (Monk) on Oct 26, 2000 at 21:19 UTC
      Thanks FouRPlaY, this is the sort of meaty discussion of the topic that I'm looking for. Of course, it should be noted that as of now (updates notwithstanding (which has a historically funny story altogether; the word notwithstanding that is)) I'm leaning towards HTML::Mason since it seems the most visually appealing of the various pointers people have provided.

      ALL HAIL BRAK!!!

        Glad to help. I really like that WDVL site. It is where I first learned Perl.
RE: Embedding Perl in HTML
by princepawn (Parson) on Oct 26, 2000 at 17:16 UTC
    Umm, methinks this be the 1000th time this question has been asked... type "Perl HTML" into the search box above and see what is revealed to thine eyes?

    Above and beyond what has been said previously checkout Perl Month for their articles on HTML::Mason and HTML::Embperl and HTML::Template.

      Sure it may be the "1000th time" to ask something like this, but it's like nobody listens here. They see HTML::Mason and presume that I'm asking for a list of modules. That's only part of the question. I'm also wanting a good anecdotal response with corresponding benchmarks. I typed in HTML::Mason into the search box last night and was disappointed in that realm. So I asked for some stats that I figure would be useful.

      I had trouble with the link to PerlMonth, so you may have actually answered exactly as I wanted.

      ALL HAIL BRAK!!!

        Perlmonth.COM is their URL, not Perlmonk.ORG as I mistakenly wrote in my first post.
RE: Embedding Perl in HTML
by little (Curate) on Oct 26, 2000 at 17:30 UTC
    You can also
    use Server Side Includes (to somewhat keep clearness between perl and HTML)
    use Perl from ActiveStates Perldistribution as they call it PerlScript for usage as ASP on MS-IIS
    Have a nice day
    All decision is left to your taste
RE: Embedding Perl in HTML
by tune (Curate) on Oct 26, 2000 at 22:07 UTC
    Also try this:
    Pee.sourceforge.net . Simple but goodie. Works with Apache, and as a standalone script too.

    -- tune

      I took a look at PEE and immediately thought: yeah, but all it does is Embed Perl in HTML... it is rare the dynamic content generation is all that one wants out of Perl and a website, in which case complete Web Application Development Environments are more appropriate.

      For example, it is imaginable that you also want

    • sessioning
    • caching
    • HTML-based database querying and navigation